Closed KES777 closed 2 years ago
$ cpanm App::cpm
--> Working on App::cpm
Fetching http://www.cpan.org/authors/id/S/SK/SKAJI/App-cpm-0.997011.tar.gz ... OK
Configuring App-cpm-0.997011 ... OK
==> Found dependencies: Parse::PMFile
--> Working on Parse::PMFile
Fetching http://www.cpan.org/authors/id/I/IS/ISHIGAKI/Parse-PMFile-0.43.tar.gz ... OK
Configuring Parse-PMFile-0.43 ... OK
Building and testing Parse-PMFile-0.43 ... OK
Successfully installed Parse-PMFile-0.43 (upgraded from 0.42)
! Installing the dependencies failed: Installed version (0.42) of Parse::PMFile is not in range '0.43'
! Bailing out the installation for App-cpm-0.997011.
1 distribution installed
$ perl -V
...
@INC:
/home/kes/work/projects/proj/lib
/home/kes/perl5/perlbrew/perls/perl-5.30.3/lib/site_perl/5.30.3/x86_64-linux
/home/kes/perl5/perlbrew/perls/perl-5.30.3/lib/site_perl/5.30.3
/home/kes/perl5/perlbrew/perls/perl-5.30.3/lib/5.30.3/x86_64-linux
/home/kes/perl5/perlbrew/perls/perl-5.30.3/lib/5.30.3
Just checked. at /home/kes/work/projects/proj/lib
I have installed Parse-PMFile-0.42
, but new version is installed into /home/kes/perl5/perlbrew/perls/perl-5.30.3/lib/5.30.3
.
Thus I get that error.
Should cpanm
clear @INC before installing?
You have PERL5LIB
set to your proj/lib, but you don't have your shell configured to install modules there, causing the conflicts. cpanm doesn't touch your perl5 include path unless it's told to via -L
.
This is more question but probably could be a bug.
We see that
Successfully installed Parse-PMFile-0.43 (upgraded from 0.42)
But then installation failed because
Installing the dependencies failed: Installed version (0.42) of Parse::PMFile is not in range '0.43'
So why
cpanm
complains about wrong version forParse::PMFile
when it just upgrades is to required0.43
?