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

Re: Using modules without admin privelages

by btrott (Parson)
on May 05, 2000 at 22:22 UTC ( #10404=note: print w/replies, xml ) Need Help??

in reply to Using modules without admin privelages

Yes. The easiest way is to add this to the top of your Perl script that uses the module:
use lib '/home/foo';
This will tell perl to look in /home/foo for modules.

Another option is to use the -I flag on your #!/path/perl line:

#!/usr/local/bin/perl -w -I/home/foo
A final option is to set the PERL5LIB environment variable to the path.

Personally, I'd recommend using the first option (use lib).

If you're trying to *install* modules into your home directory, run Makefile.PL with the PREFIX option:

perl Makefile.PL PREFIX=/home/foo
And if you're using, specify PREFIX=/home/foo as the argument to Makefile.PL in the configuration options when you first run the shell.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (2)
As of 2021-12-07 03:24 GMT
Find Nodes?
    Voting Booth?
    R or B?

    Results (33 votes). Check out past polls.