in reply to Location of perl libraries under unix
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
There are three types of people in this world, those that can count and those that cannot. Anon
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Location of perl libraries under unix
by ajdelore (Pilgrim) on Jul 17, 2003 at 17:06 UTC | |
|
Re: Re: Location of perl libraries under unix
by benizi (Hermit) on Jul 18, 2003 at 16:40 UTC |