Bug 237508: Have checksetup.pl specify which perl to use (the same one it's…

Bug 237508: Have checksetup.pl specify which perl to use (the same one it's running under) when giving instructions how to use CPAN to install needed modules. r= jouni, a= justdave
parent d17e6ee1
...@@ -272,6 +272,7 @@ my $modules = [ ...@@ -272,6 +272,7 @@ my $modules = [
my %ppm_modules = ( my %ppm_modules = (
'AppConfig' => 'AppConfig', 'AppConfig' => 'AppConfig',
'Chart::Base' => 'Chart',
'CGI' => 'CGI', 'CGI' => 'CGI',
'Data::Dumper' => 'Data-Dumper', 'Data::Dumper' => 'Data-Dumper',
'Date::Format' => 'TimeDate', 'Date::Format' => 'TimeDate',
...@@ -290,7 +291,7 @@ sub install_command { ...@@ -290,7 +291,7 @@ sub install_command {
return "ppm install " . $ppm_modules{$module} if exists $ppm_modules{$module}; return "ppm install " . $ppm_modules{$module} if exists $ppm_modules{$module};
return "ppm install " . $module; return "ppm install " . $module;
} else { } else {
return "perl -MCPAN -e 'install \"$module\"'"; return "$^X -MCPAN -e 'install \"$module\"'";
} }
} }
...@@ -330,8 +331,7 @@ if ((!$gd || !$chartbase) && !$silent) { ...@@ -330,8 +331,7 @@ if ((!$gd || !$chartbase) && !$silent) {
print "If you you want to see graphical bug charts (plotting historical "; print "If you you want to see graphical bug charts (plotting historical ";
print "data over \ntime), you should install libgd and the following Perl "; print "modules:\n\n"; print "data over \ntime), you should install libgd and the following Perl "; print "modules:\n\n";
print "GD: " . install_command("GD") ."\n" if !$gd; print "GD: " . install_command("GD") ."\n" if !$gd;
print "Chart 0.99b: perl -MCPAN " . print "Chart 0.99b: " . install_command("Chart::Base") . "\n" if !$chartbase;
"-e'install \"N/NI/NINJAZ/Chart-0.99b.tar.gz\"'\n" if !$chartbase;
print "\n"; print "\n";
} }
if (!$xmlparser && !$silent) { if (!$xmlparser && !$silent) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment