Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Where to unpack CPAN modules

by Joost (Canon)
on Dec 14, 2006 at 23:22 UTC ( [id://589932]=note: print w/replies, xml ) Need Help??


in reply to Where to unpack CPAN modules

It doesn't matter where you unpack and build the module - you should run make install to install them properly. If you want to install the module into a specific directory do it like this:
perl Makefile.PL PREFIX=~/somewhere make make test make install
update: read ExtUtils::MakeMaker's section on "PREFIX and LIB attribute"

Replies are listed 'Best First'.
Re^2: Where to unpack CPAN modules
by rinceWind (Monsignor) on Dec 15, 2006 at 12:27 UTC

    I recommend using a combination of PREFIX= and LIB= as in:

    perl Makefile.PL PREFIX=~/perl LIB=~/perl/lib make make test make install

    If you have any modules that use Module::Build, the mantra is different: (presented here for completeness)

    perl Build.PL install_base=~/perl ./Build ./Build test ./Build install

    --

    Oh Lord, won’t you burn me a Knoppix CD ?
    My friends all rate Windows, I must disagree.
    Your powers of persuasion will set them all free,
    So oh Lord, won’t you burn me a Knoppix CD ?
    (Missquoting Janis Joplin)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://589932]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2024-04-26 01:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found