Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Using modules without admin privelages

by btrott (Parson)
on May 05, 2000 at 22:22 UTC ( [id://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 CPAN.pm, specify PREFIX=/home/foo as the argument to Makefile.PL in the configuration options when you first run the shell.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-03-29 04:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found