[Israel.pm] PERL5LIB and CPAN installations

Yossi Itzkovich Yossi.Itzkovich at ecitele.com
Mon Aug 6 22:57:21 PDT 2007

Hi again,

When I run (in CPAN's shell) "o conf init" I get this question:
The next questions deal with Module::Build support.

A Build.PL is run by perl in a separate process. Likewise we run
'./Build' and './Build install' in separate processes. If you have any
parameters you want to pass to the calls, please specify them here.

Parameters for the 'perl Build.PL' command?
Typical frequently used settings:

    --install_base /home/xxx             # different installation

Should I set it similar to PREFIX  ?  And what about LIB? According to
Module::Build documentation it looks like I have to overide lib and arch
too to get the same effect?


-----Original Message-----
From: perl-bounces at perl.org.il [mailto:perl-bounces at perl.org.il] On
Behalf Of Gabor Szabo
Sent: Tuesday, August 07, 2007 8:04 AM
To: Perl in Israel
Subject: Re: [Israel.pm] PERL5LIB and CPAN installations

Whe building the module it is better to use

perl Makefile.PL PREFIX=~/perl  LIB=~/perl/lib

and then you can use PERL5LIB=~/perl/lib

Otherwise some modules will be installed in other directories
as you also noticed.


On 8/7/07, Yossi Itzkovich <Yossi.Itzkovich at ecitele.com> wrote:
> Hi,
> I work on Solaris, and untill I used the Solaris 10 built in perl
> I had no problems installing and using CPAN modules, and always my
> PERL5LIB pointed to ~/perl  (or was it ~/perl/lib ? I don't remember).
> In the CPAN config file I also used PREFIX as ~/perl.
> Now, and I am not sure if it's the newer CPAN module, or the built in
> perl 5.8.4, I have to define PERL5LIB  as something similar to :
> site_perl
> In order to use new modules I install.  Why ?
Perl mailing list
Perl at perl.org.il

More information about the Perl mailing list