[Module::Build] MB uses wrong perl
Status: Beta
Brought to you by:
kwilliams
|
From: Jim C. <jc...@di...> - 2003-11-29 00:51:18
|
when I use an older perl (ex: perl5.6.2) to build the Makefile, several
things go wrong;
1. Makefile uses /usr/local/bin/perl, not /usr/local/bin/perl5.6.2
all : force_do_it
/usr/local/bin/perl Build
This patch 'seems' to fix this prob (but does nothing for my separate
hanging problem).
I saw your Change notes about $^X unreliability, so this may not be the
thing, but its a start..
diff -ru Module-Build-0.21/lib/Module/Build/Base.pm
Module-Build-0.21-mod/lib/Module/Build/Base.pm
--- Module-Build-0.21/lib/Module/Build/Base.pm Wed Oct 15 19:25:18 2003
+++ Module-Build-0.21-mod/lib/Module/Build/Base.pm Fri Nov 7
17:10:22 2003
@@ -166,8 +166,8 @@
sub find_perl_interpreter {
my $perl;
File::Spec->file_name_is_absolute($perl = $^X)
- or -f ($perl = $Config::Config{perlpath})
- or ($perl = $^X);
+ or ($perl = $^X)
+ or -f ($perl = $Config::Config{perlpath});
return $perl;
}
2. executable version mismatch.
[root@harpo Module-Build-0.21]# perl5.6.2 Makefile.PL
perl5.6.2 Build.PL
Checking whether your kit is complete...
Looks good
WARNING: ExtUtils::ParseXS: Prerequisite ExtUtils::ParseXS isn't installed
WARNING: YAML: Prerequisite YAML isn't installed
ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the
versions
of the modules indicated above before proceeding with this installation.
Deleting Build
Removed previous script 'Build'
Creating new 'Build' script for 'Module-Build' version '0.21'
[root@harpo Module-Build-0.21]# make
/usr/local/bin/perl Build
Perl lib version (v5.6.2) doesn't match executable version (v5.8.2) at
/usr/local/lib/perl5/5.6.2/i686-linux/Config.pm line 21.
guidance appreciated,
reqs for more info welcome,
jimc
|