Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks.. I am a beginner in perl. I am trying to install perl modules from CPAN by downloading tar files (coz CPAN command methos causing me permission denied probles on my ubuntu machine even with the sudo command.) now I am successfully able to install the modules using tar files but issue is that they are installed not on the correct path, means it is not being considered by @INC array. so what I have to do, is to add those paths using BEGIN & unshift for each and every module.. something like below
BEGIN { unshift (@INC, "/home/eankuls/.cpan/build/Net-SSH-Perl-1.37-KSvjy6/bli +b/lib"); unshift (@INC, "/home/eankuls/.cpan/build/Math-Pari-2.01080607-oiJwzq/ +blib/lib"); unshift (@INC, "/home/eankuls/.cpan/build/Math-Pari-2.01080607-oiJwzq/ +blib/lib"); unshift (@INC, "/home/eankuls/.cpan/build/Crypt-DH-0.07-B70AtC/blib/li +b"); unshift (@INC, "/home/eankuls/.cpan/build/Digest-SHA1-2.13-lHIaOb/blib +/lib"); }
so is there any way so that they can install at the correct path? please let me know if you need more info. as I am new in perl and might be missing some necessary info. thanx
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to install (download) CPAN module on the correct path.
by tobyink (Canon) on May 01, 2014 at 08:06 UTC | |
by Ankur_kuls (Sexton) on May 01, 2014 at 11:11 UTC | |
by marto (Cardinal) on May 01, 2014 at 11:22 UTC | |
|
Re: How to install (download) CPAN module on the correct path.
by marto (Cardinal) on May 01, 2014 at 08:40 UTC | |
|
Re: How to install (download) CPAN module on the correct path.
by Anonymous Monk on May 01, 2014 at 08:02 UTC | |
|
Re: How to install (download) CPAN module on the correct path.
by Anonymous Monk on May 01, 2014 at 08:29 UTC | |
by Ankur_kuls (Sexton) on May 01, 2014 at 09:29 UTC | |
by Anonymous Monk on May 01, 2014 at 09:35 UTC |