F.Y.I.
I don't know if this helps in tracking down the problem, but on Win32
perl Build.PL --prefix=F:/path/i/want
works fine and Alien::wxWidgets gets installed where I have specified.
However, I am not using Alien to build wxWidgets and in my
package Alien::wxWidgets::Config::msw_2_8_7_uni_mslu_gcc_3_4;
the config vars for include_path, link_libraries etc. all point to the standard
sitearch location, not the location where Alien::wxWidgets has actually been
installed.
I used to patch 'My::Build::Utility;' with an ugly none portable hack to fix
this ( the methods in question always return $Config{sitearchexp} )
The patch is attached as it is tested and does work if the env variable
'$ENV{WX_BUILDENV_LIB}' is set. A better approach using some other method of
setting $BUILDLIBPREFIX would solve this problem I think.
Regards
Mark
Mattia Barbon <[EMAIL PROTECTED]> wrote:
ok, so now I tried to install it manually:
perl Makefile.PL PREFIX=/home/gabor/perl5lib LIB=/home/gabor/perl5lib/lib
which was then translated to
/usr/bin/perl Build.PL --prefix /home/gabor/perl5lib
--install_path lib=/home/gabor/perl5lib/lib
make
make test
make install
...
make[2]: Leaving directory
`/home/gabor/Alien-wxWidgets-0.35/wxWidgets-2.8.7/bld/utils/wxrc'
/usr/bin/install -c -d /usr/local/lib/perl/5.8.8/Alien/wxWidgets/gtk_2_8_7/lib
/usr/bin/install: cannot create directory
`/usr/local/lib/perl/5.8.8/Alien': Permission denied
make[1]: *** [install_basedll] Error 1
make[1]: Leaving directory
`/home/gabor/Alien-wxWidgets-0.35/wxWidgets-2.8.7/bld'
system: make install: 512 at Build line 62
make: *** [install] Error 9
that is, it seems Alien::wxWidgets 0.35 cannot be installed in a
private directory.
It used to be possible, will check.
Regards,
Mattia
diff -ruwB -x.svn inc/My/Build/Utility.pm inc/My/Build/Utility.pm
--- inc/My/Build/Utility.pm 2007-08-23 18:14:20.224999500 +0100
+++ inc/My/Build/Utility.pm 2007-08-23 18:23:44.963839900 +0100
@@ -5,6 +5,9 @@
use Config;
use Fatal qw(open);
+our $BUILDLIBPREFIX = $ENV{WX_BUILDENV_LIB};
+$BUILDLIBPREFIX =~ s/\\/\//g;
+
our @EXPORT_OK = qw(awx_arch_file awx_install_arch_file
awx_install_arch_auto_file
awx_arch_dir awx_install_arch_dir awx_touch);
@@ -23,19 +26,19 @@
sub awx_install_arch_file {
my( $vol, $dir, $file ) = File::Spec->splitpath( $_[0] || '' );
- File::Spec->catfile( $Config{sitearchexp}, 'Alien', 'wxWidgets',
+ File::Spec->catfile( $BUILDLIBPREFIX, 'Alien', 'wxWidgets',
File::Spec->splitdir( $dir ), $file );
}
sub awx_install_arch_dir {
my( $vol, $dir, $file ) = File::Spec->splitpath( $_[0] || '' );
- File::Spec->catdir( $Config{sitearchexp}, 'Alien', 'wxWidgets',
+ File::Spec->catdir( $BUILDLIBPREFIX, 'Alien', 'wxWidgets',
File::Spec->splitdir( $dir ), $file );
}
sub awx_install_arch_auto_file {
my( $vol, $dir, $file ) = File::Spec->splitpath( $_[0] || '' );
- File::Spec->catfile( $Config{sitearchexp}, 'auto', 'Alien', 'wxWidgets',
+ File::Spec->catfile( $BUILDLIBPREFIX, 'auto', 'Alien', 'wxWidgets',
File::Spec->splitdir( $dir ), $file );
}