From 2d3fb15a3f89fa50d2e0f7bdd29344310bc41aaa Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sun, 23 Jun 2013 11:10:11 +0200 Subject: [PATCH] Look for cpanm in sitebin too --- Build.PL | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Build.PL b/Build.PL index c87d5b51f..5cf83afcd 100644 --- a/Build.PL +++ b/Build.PL @@ -33,6 +33,8 @@ my %recommends = qw( my $cpanm; if (defined $ENV{CPANM} && -x $ENV{CPANM}) { $cpanm = $ENV{CPANM}; +} elsif (-x (my $c = File::Spec->catfile($Config{sitebin}, 'cpanm'))) { + $cpanm = $c; } elsif (-x (my $c = File::Spec->catfile($Config{installscript}, 'cpanm'))) { $cpanm = $c; } elsif ($^O =~ /^(?:darwin|linux)$/ && system(qw(which cpanm)) == 0) {