Bug#586795: Only one of PREFIX or INSTALL_BASE can be given. Not both.

Salvatore Bonaccorso carnil at debian.org
Tue Dec 27 08:59:14 UTC 2011


Hi Jonathan

On Tue, Jun 22, 2010 at 11:36:09AM -0500, Jonathan Nieder wrote:
> Package: liblocal-lib-perl
> Version: 1.006004-1
> Severity: minor
> Justification: user error (i.e., documentation bug)
> 
> I use local::lib to locally install perl modules that have not yet
> been packaged for Debian. Normally it works great, but today I ran
> into trouble building git:
> 
>  $ make git-svn
>      SUBDIR perl
>  /usr/bin/perl Makefile.PL PREFIX='/home/jrn'
>  Only one of PREFIX or INSTALL_BASE can be given.  Not both.
>  make[1]: *** [perl.mak] Error 255
>  make: *** [perl/perl.mak] Error 2
> 
> I would have expected the PREFIX to take precedence or the
> local::lib(3pm) manual page to give some guidance.

I'm sorry that you don't got a reply earlyer on this. I asked upstream
if documentation could be expanded to make that clearer. local::lib
sets INSTALL_BASE in PERL_MM_OPT. In ExtUtils::MakeMaker::FAQ I found:

       PREFIX vs INSTALL_BASE from Module::Build::Cookbook
           The behavior of PREFIX is complicated and depends closely on
           how your Perl is configured. The resulting installation
           locations will vary from machine to machine and even
           different installations of Perl on the same machine. Because
           of this, its difficult to document where prefix will place
           your modules.

           In contrast, INSTALL_BASE has predictable, easy to explain
           installation locations. Now that Module::Build and MakeMaker
           both have INSTALL_BASE there is little reason to use PREFIX
           other than to preserve your existing installation locations.
           If you are starting a fresh Perl installation we encourage
           you to use INSTALL_BASE. If you have an existing installation
           installed via PREFIX, consider moving it to an installation
           structure matching INSTALL_BASE and using that instead.

Regards
Salvatore
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20111227/77a8c35a/attachment.pgp>


More information about the pkg-perl-maintainers mailing list