[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl-module-build
Subject:    Re: ExtUtils::MakeMaker question, before I post to a larger audience
From:       David Golden <xdaveg () gmail ! com>
Date:       2011-12-16 18:47:36
Message-ID: CAOeq1c-c69WbCnO+Cavk=0UH-5gnaaY5WsWCJ6gjm33A1wHozQ () mail ! gmail ! com
[Download RAW message or body]

On Wed, Dec 14, 2011 at 10:25 AM, Phil Kasten <pskasten@gmail.com> wrote:
> I am using the cpan tool to install modules on a FreeBSD system that I do
> not have root permission on. =C2=A0I have a provided a PREFIX for the mak=
epl_arg,
> to install everything in my local path. =C2=A0Almost everything works fin=
e.

There are two different sets of configuration options in the "cpan"
tool, one for dists with Makefile.PL and one for dists with Build.PL.
 The options are separate because Makefile.PL and Build.PL have
different argument names to do similar things.
For "cpan" (i.e. CPAN.pm), the arguments are like this (type "o conf"
from the cpan prompt to see them):

    makepl_arg
    make_arg
    make_install_arg

Those are the arguments respectively for "perl Makefile.PL", "make"
and "make install".  Likewise, they have Build.PL equivalents:

    mbuildpl_arg
    mbuild_arg
    mbuild_install_arg

Those are for "perl Build.PL", "./Build" and "./Build install"

You need to set installation directory arguments for *both* makepl_arg
and mbuildpl_arg.

As others have mentioned, using INSTALL_BASE/install_base is
recommended by experts over PREFIX.

You should also explore the local::lib module on CPAN, which is
designed to automate the kind of configuration that you're doing.  See
the "bootstrapping" documentation for how to set it up.

    https://metacpan.org/module/local::lib#The-bootstrapping-technique

Good luck!

-- David
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic