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: Re: [srhadden] Good lord, installing modules is a PITA. Help Please!: Edit Log



budman
User

Mar 4, 2012, 10:27 AM


Views: 1876
Re: [srhadden] Good lord, installing modules is a PITA. Help Please!

 
If you need to install the modules to its own lib dir
check out

http://search.cpan.org/dist/local-lib/lib/local/lib.pm

cpan install local::lib

To have cpan install any pre-reqs you need to set the config option

prerequisites_policy [follow]

Then you should be able to do:

# Install LWP and its missing dependencies to the '~/perl5' directory
perl -MCPAN -Mlocal::lib -e 'CPAN::install(LWP)'

For other dirs, check out the docs, it walks you thru other locations.

Are you doing site bundling/archiving libs, where you compile a bunch of modules and then load them onto other servers?

Most modules are built very well and work quite well with the prereq follow, however, there are times when a module sneaks in and the only resolution is checking the log output and just 'cpan install missing::mod'.

Manual installs require you to read any Install or Readme.txt files so you can see what the pre-reqs are and install them. Otherwise, its whack-a-mole until you get the pre-reqs done, and hopefully you got them all.


(This post was edited by budman on Mar 4, 2012, 10:39 AM)


Edit Log:
Post edited by budman (User) on Mar 4, 2012, 10:29 AM
Post edited by budman (User) on Mar 4, 2012, 10:39 AM


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

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