Home: Perl Programming Help: Beginner:
Loading perl modules in local directory



popeye
Novice

Jan 9, 2014, 10:31 AM


Views: 2247
Loading perl modules in local directory

I needed admin to load a few modules on the linux server. Their reply was "use your local home directory and reference and modules locally there."

Im not sure how to do this ... Ive loaded cpan on my virtual linux box and have to sudo up to root to load up new modules (which is actually how I like it). I did the same on the other linux appliances I work on where I had sudo access.

So the question is how do I do this ?


FishMonger
Veteran / Moderator

Jan 9, 2014, 11:11 AM


Views: 2244
Re: [popeye] Loading perl modules in local directory

Google is your friend - "install perl modules without root access"

https://www.google.com/search?q=install+perl+modules+locally&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a#q=install%20perl%20modules%20without%20root%20access&rls=org.mozilla:en-US:official


popeye
Novice

Jan 13, 2014, 6:02 AM


Views: 2207
Re: [FishMonger] Loading perl modules in local directory

 
Well, Ive tried some of the links given in the response. Non of the solutions worked and now I have a pretty messy @INC


Quote
Can't locate local/lib.pm in @INC (@INC contains: /home/popeye/perlmods/lib/perl/5.8 /home/popeye/perlmods/lib/perl/5.8.8 /home/popeye/perlmods/share/perl/5.8 /home/popeye/perlmods/share/perl/5.8.8 /home/popeye/perlmods/local/share/perl/5.8.8 /home/popeye/perlmods/local/lib/perl/5.8.8 /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8).
BEGIN failed--compilation aborted.


So the question I have now is how do I clean up @INC ? ... remove all the popeye statements.


popeye
Novice

Jan 14, 2014, 11:03 AM


Views: 2151
Re: [popeye] Loading perl modules in local directory

The solution was to just go ahead and load the entire perl distro in my local directory. This guy, at least for this new guy, is another great resource along with Perl Archive Beginners. http://perlmaven.com/download-and-install-perl