Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Error during manual local module install

by markkawika (Monk)
on Jul 22, 2009 at 23:36 UTC ( [id://782490]=note: print w/replies, xml ) Need Help??


in reply to Error during manual local module install

I believe you haven't set your PERL5LIB variable correctly. Assuming your home directory is /home/me, you'll need to set your PERL5LIB environment variable to /home/me/perl_mods/lib/site_perl/5.8.4. You may also have to include the architecture-specific directory, even though the perlrun man page says it searches them automatically. If so, set the variable to /home/me/perl_mods/lib/site_perl/5.8.4:/home/me/perl_mods/lib/site_perl/5.8.4/sun4-solaris-64int.

Try that and see if it works.

After you set it, you can run perl -V and see if it's picked up the change. Look in the @INC: section to see if it shows your new directory.

Replies are listed 'Best First'.
Re^2: Error during manual local module install
by madorb (Novice) on Jul 23, 2009 at 00:02 UTC
    That did it, i'm still a bit confused as to the level and where/why modules end up in either
    ~perl_mods/lib/site_perl/ or
    ~perl_mods/lib/site_perl/5.8.4/sun4-solaris-64int or
    ~perl_mods/lib/sun4-solaris-64int

    How is it determine WHERE a module lives?
      It really doesn't matter. If you use PREFIX=~perlmods , then you have PERL5LIB=~perlmods you might have to expand the ~ yourself, but that is all you have to do. Perl takes care of the rest.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://782490]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-09-17 09:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (22 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.