Skip to content

Instantly share code, notes, and snippets.

@jeddenlea
Created March 6, 2014 02:40
Show Gist options
  • Save jeddenlea/9381209 to your computer and use it in GitHub Desktop.
Save jeddenlea/9381209 to your computer and use it in GitHub Desktop.
cpanm dependency tree bug
$ ls
cpanfile
$ cat cpanfile
requires 'Module::Refresh', '== 0.17';
requires 'Path::Class', '== 0.26';
$ cpanm -L local --cpanfile cpanfile --installdeps .
--> Working on .
Configuring /home/jed/test ... OK
==> Found dependencies: Module::Refresh, Path::Class
--> Working on Module::Refresh
Fetching http://www.cpan.org/authors/id/A/AL/ALEXMV/Module-Refresh-0.17.tar.gz ... OK
Configuring Module-Refresh-0.17 ... OK
==> Found dependencies: Path::Class
--> Working on Path::Class
Fetching http://www.cpan.org/authors/id/K/KW/KWILLIAMS/Path-Class-0.33.tar.gz ... OK
==> Found dependencies: Module::Build
--> Working on Module::Build
Fetching http://www.cpan.org/authors/id/L/LE/LEONT/Module-Build-0.4205.tar.gz ... OK
==> Found dependencies: Module::Build
Configuring Module-Build-0.4205 ... OK
==> Found dependencies: Module::Metadata, CPAN::Meta, Perl::OSType, ExtUtils::CBuilder, Parse::CPAN::Meta, ExtUtils::ParseXS, version, CPAN::Meta::YAML
--> Working on Module::Metadata
Fetching http://www.cpan.org/authors/id/E/ET/ETHER/Module-Metadata-1.000019.tar.gz ... OK
Configuring Module-Metadata-1.000019 ... OK
==> Found dependencies: version
--> Working on version
Fetching http://www.cpan.org/authors/id/J/JP/JPEACOCK/version-0.9908.tar.gz ... OK
Configuring version-0.9908 ... OK
Building and testing version-0.9908 ... OK
Successfully installed version-0.9908 (upgraded from 0.77)
Building and testing Module-Metadata-1.000019 ... OK
Successfully installed Module-Metadata-1.000019
--> Working on CPAN::Meta
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/CPAN-Meta-2.140640.tar.gz ... OK
Configuring CPAN-Meta-2.140640 ... OK
==> Found dependencies: List::Util, Parse::CPAN::Meta, CPAN::Meta::YAML, JSON::PP, CPAN::Meta::Requirements
--> Working on List::Util
Fetching http://www.cpan.org/authors/id/P/PE/PEVANS/Scalar-List-Utils-1.38.tar.gz ... OK
Configuring Scalar-List-Utils-1.38 ... OK
Building and testing Scalar-List-Utils-1.38 ... OK
Successfully installed Scalar-List-Utils-1.38 (upgraded from 1.21)
--> Working on Parse::CPAN::Meta
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Parse-CPAN-Meta-1.4414.tar.gz ... OK
Configuring Parse-CPAN-Meta-1.4414 ... OK
==> Found dependencies: CPAN::Meta::YAML, JSON::PP
--> Working on CPAN::Meta::YAML
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/CPAN-Meta-YAML-0.012.tar.gz ... OK
Configuring CPAN-Meta-YAML-0.012 ... OK
==> Found dependencies: Test::More, JSON::PP
--> Working on Test::More
Fetching http://www.cpan.org/authors/id/R/RJ/RJBS/Test-Simple-1.001002.tar.gz ... OK
Configuring Test-Simple-1.001002 ... OK
Building and testing Test-Simple-1.001002 ... OK
Successfully installed Test-Simple-1.001002 (upgraded from 0.92)
--> Working on JSON::PP
Fetching http://www.cpan.org/authors/id/M/MA/MAKAMAKA/JSON-PP-2.27203.tar.gz ... OK
Configuring JSON-PP-2.27203 ... OK
Building and testing JSON-PP-2.27203 ... OK
Successfully installed JSON-PP-2.27203
Building and testing CPAN-Meta-YAML-0.012 ... OK
Successfully installed CPAN-Meta-YAML-0.012
Building and testing Parse-CPAN-Meta-1.4414 ... OK
Successfully installed Parse-CPAN-Meta-1.4414 (upgraded from 1.39)
--> Working on CPAN::Meta::Requirements
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/CPAN-Meta-Requirements-2.125.tar.gz ... OK
Configuring CPAN-Meta-Requirements-2.125 ... OK
Building and testing CPAN-Meta-Requirements-2.125 ... OK
Successfully installed CPAN-Meta-Requirements-2.125
Building and testing CPAN-Meta-2.140640 ... OK
Successfully installed CPAN-Meta-2.140640
--> Working on Perl::OSType
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Perl-OSType-1.007.tar.gz ... OK
Configuring Perl-OSType-1.007 ... OK
Building and testing Perl-OSType-1.007 ... OK
Successfully installed Perl-OSType-1.007
--> Working on ExtUtils::CBuilder
Fetching http://www.cpan.org/authors/id/A/AM/AMBS/ExtUtils/ExtUtils-CBuilder-0.280212.tar.gz ... OK
Configuring ExtUtils-CBuilder-0.280212 ... OK
Building and testing ExtUtils-CBuilder-0.280212 ... OK
Successfully installed ExtUtils-CBuilder-0.280212 (upgraded from 0.2602)
--> Working on ExtUtils::ParseXS
Fetching http://www.cpan.org/authors/id/S/SM/SMUELLER/ExtUtils-ParseXS-3.22.tar.gz ... OK
Configuring ExtUtils-ParseXS-3.22 ... OK
Building and testing ExtUtils-ParseXS-3.22 ... OK
Successfully installed ExtUtils-ParseXS-3.22 (upgraded from 2.2002)
Building and testing Module-Build-0.4205 ... OK
Successfully installed Module-Build-0.4205 (upgraded from 0.340201)
Configuring Path-Class-0.33 ... OK
Building and testing Path-Class-0.33 ... OK
Successfully installed Path-Class-0.33
Building and testing Module-Refresh-0.17 ... OK
Successfully installed Module-Refresh-0.17
! Installing the dependencies failed: Installed version (0.33) of Path::Class is not in range '== 0.26'
! Bailing out the installation for ..
15 distributions installed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment