[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

Re: [ID 20000129.001] MakeMaker: PREFIX= doesn't set INSTALLSITELIB



Simon Cozens writes:
> As noticed by a user on #perl earlier, the FAQ's advice of running
> 
> % perl Makefile.PL PREFIX=~/plib
> 
> (or whatever) to set up a local modules directory fails on some modules
> since the generated Makefile does not correctly prexify INSTALLSITELIB
> and INSTALLSITEARCH

It does.

> For example, from Net::Finger:
> 
> PREFIX = /tmp
> INSTALLDIRS = site
> INSTALLPRIVLIB = $(PREFIX)/lib/5.00561
> INSTALLARCHLIB = $(PREFIX)/lib/5.00561/i686-linux
> INSTALLSITELIB = /usr/local/lib/site_perl
> INSTALLSITEARCH = /usr/local/lib/site_perl/5.00561/i686-linux
> INSTALLBIN = $(PREFIX)/bin

Observe:

> @INC for perl 5.00561:
>     /usr/local/lib/perl5/5.00561/i686-linux
>     /usr/local/lib/perl5/5.00561
>     /usr/local/lib/site_perl/5.00561/i686-linux
>     /usr/local/lib/site_perl
>     .

So your perl was NOT configured with prefix=/usr/local.  All PREFIX=
does is substitution of prefix= given on perl's Configure command line with
the value given to MakeMaker.

Ilya


References to:
"Simon Cozens" <simon@othersideofthe.earth.li>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]