On Mon, 14 Feb 2005, Ben Tilly wrote:

> I've also been told that Module::Build doesn't do a good job for
> people who want to install a module into a personal directory -
> it tries to install it into the system directory and then fails if you
> don't have permissions. :-(

That's not been my experience. install_base seems to tdo the right thing
as far as I can tell. From the man page:

install_base

    You can also set the whole bunch of installation paths by supplying
the install_base parameter to point to a directory on your system. For
instance, if you set install_base to "/home/ken" on a Linux system, you'll
install as follows:

 lib     => /home/ken/lib
 arch    => /home/ken/lib/i386-linux
 script  => /home/ken/scripts
 bin     => /home/ken/bin
 bindoc  => /home/ken/man/man1
 libdoc  => /home/ken/man/man3

    Note that this is different from how MakeMaker's PREFIX parameter
works. PREFIX tries to create a mini-replica of a site-style installation
under the directory you specify, which is not always possible (and the
results are not always pretty in this case). install_base just gives you a
default layout under the directory you specify, which may have little to
do with the installdirs=site layout.

    The exact layout under the directory you specify may vary by system -
we try to do the "sensible" thing on each platform.

So ./Build --install_base=/home/simonw should do what you want. Do you
have other experience ?

Simon.
 
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to