in reply to PREFIX= vs LIB=

ExtUtils::MakeMaker's pod has a section titled 'PREFIX and LIB attribute'. It gives the exact effects of each and tells how conflicts between them are resolved.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re: Re: PREFIX= vs LIB=
by IlyaM (Parson) on Feb 06, 2003 at 09:03 UTC
    From this pod:

    perl Makefile.PL PREFIX=~
    This will install all files in the module under your home directory, with man pages and libraries going into an appropriate place (usually ~/man and ~/lib).

    Unfortunately old versions of ExtUtils::MakeMaker are broken (those which are included in Perl <= 5.6.1) and value of PREFIX is not used when installing Perl modules and man pages. This is why all old tutorials on this topic recomend using LIB. Good news are that updated ExtUtils::MakeMaker is avialable from CPAN so you can upgrade it if you are stick with old versions of Perl.

    --
    Ilya Martynov, ilya@iponweb.net
    CTO IPonWEB (UK) Ltd
    Quality Perl Programming and Unix Support UK managed @ offshore prices - http://www.iponweb.net
    Personal website - http://martynov.org