Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: CPAN + PREFIX + Module::Build

by dakkar (Hermit)
on Jul 15, 2005 at 18:08 UTC ( #475312=note: print w/replies, xml ) Need Help??

in reply to CPAN + PREFIX + Module::Build

I use this setup:

export PERL5LIB=/home/dakkar/localperl:$PERL5LIB export PERL5_CPANPLUS_CONFIG=/home/dakkar/.cpanplus/config export PERL_MM_OPT='INSTALLDIRS=perl LIB=/home/dakkar/localperl/ INSTA +LLBIN=/home/dakkar/bin INSTALLSCRIPT=/home/dakkar/bin/ INSTALLMAN1DIR +=/home/dakkar/man/man1 INSTALLMAN3DIR=/home/dakkar/man/man3' function MyBuild { perl Build.PL \ --install_path lib=/home/dakkar/localperl/lib/ \ --install_path arch=/home/dakkar/localperl/lib/i686-linux-thre +ad-multi/ \ --install_path script=/home/dakkar/bin/ \ --install_path bin=/home/dakkar/bin/ \ --install_path bindoc=/home/dakkar/man/man1 \ --install_path libdoc=/home/dakkar/man/man3 \ "$@" } export MANPATH=/home/dakkar/man:$MANPATH

This way, I have my modules in ~/localperl and scripts and manpages go in usable places. It works both with MakeMaker and Module::Build, provided you use MyBuild instead of perl Build.PL. It also has a localized CPANPLUS config, with the same parameters set per both build systems.

        dakkar - Mobilis in mobile

Most of my code is tested...

Perl is strongly typed, it just has very few types (Dan)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://475312]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2017-06-23 00:52 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (533 votes). Check out past polls.