On Mon, Aug 16, 2010 at 2:30 AM, Laslo Forro <getfo...@gmail.com> wrote:
> exporting iinstall_base from bash did not work.
> The perl Build.PL --install-base=/foo/bar  and not using CPANP did.
>

I have the same issue: Alien::wxWidgets fails to (automatically)
install on a local lib environment. I have the "MODULEBUILDRC"
environment variable set to /home/garu/perl5/.modulebuildrc, and that
file is a single line containing "install  --install_base
/home/garu/perl5".

"perl Build.PL && ./Build && ./Build test" run smoothly, but "./Build
install" doesn't seem to honor that variable, as it keeps trying to do
a system-wide installation:

----------------8<----------------
$ set | grep BUILD
MODULEBUILDRC=/home/garu/perl5/.modulebuildrc

$ cat /home/garu/perl5/.modulebuildrc
install  --install_base  /home/garu/perl5

$ ./Build install
Building Alien-wxWidgets
(if test -d utils/wxrc ; then cd utils/wxrc && make all ; fi)
make[1]: Entering directory
`/home/garu/projetos/Alien-wxWidgets-0.51/wxWidgets-2.8.11/bld/utils/wxrc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/home/garu/projetos/Alien-wxWidgets-0.51/wxWidgets-2.8.11/bld/utils/wxrc'
make: Nothing to be done for `all'.
Files found in blib/arch: installing files in blib/lib into
architecture dependent library tree
/usr/bin/install -c -d
/usr/local/lib/perl/5.10.1/Alien/wxWidgets/gtk_2_8_11_uni/lib
/usr/bin/install: cannot create directory
`/usr/local/lib/perl/5.10.1/Alien': Permission denied
make: *** [install_basedll] Error 1
system: make install: 512 at ./Build line 62
---------------->8----------------

If however, I pass the "install_base" parameter explicitly, with "perl
Build.PL --install_base=/home/garu/perl5", it works.

Any clues? At first I thought this would be a problem with
Module::Build itself, but since every single other module using M:B
works fine with the above configuration and only Alien::wxWidgets
doesn't, I figured it might be related to the bundled "inc"
installation modules in this package. I failed to find where, though
:(

Cheers,

breno

Reply via email to