laziness, impatience, and hubris | |
PerlMonks |
Re: Location of perl libraries under unixby richardX (Pilgrim) |
on Jul 16, 2003 at 23:08 UTC ( [id://275064]=note: print w/replies, xml ) | Need Help?? |
I use a hosted web site and they do not have CPAN modules installed. So I have to install them myself. Here is my workaround so far (an example): perl -MCPAN -e 'install File::Spec' cd /home/my_home_path/.cpan/build/File-Spec-0.82 perl Makefile.PL PREFIX=/home/my_home_path/.cpan/CPAN INSTALLDIRS=site INSTALLSITELIB=/home/my_home_path/.cpan/CPAN make make test make install I then add the following code to my Perl scripts: BEGIN { unshift(@INC,"/home/my_home_path/.cpan/CPAN"); } This BEGIN code at the beginning of the script allows me to not change the paths of all my modules. Richard
In Section
Seekers of Perl Wisdom
|
|