CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

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

 



popeye
Novice

Jan 9, 2014, 10:31 AM

Post #1 of 4 (1038 views)
Loading perl modules in local directory Can't Post

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

Post #2 of 4 (1035 views)
Re: [popeye] Loading perl modules in local directory [In reply to] Can't Post

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

Post #3 of 4 (998 views)
Re: [FishMonger] Loading perl modules in local directory [In reply to] Can't Post

 
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

Post #4 of 4 (942 views)
Re: [popeye] Loading perl modules in local directory [In reply to] Can't Post

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

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives