Subject: | Missed dependency on Env |
Fedora 22 for x86_64, perl 5.20.2 and cpanm (App::cpanminus) version 1.7031, and local::lib 2.000015 are installed from Fedora repositories.
$ eval $( perl -Mlocal::lib=~/.usr )
$ cpanm Lingua::EN::Inflect
--> Working on Lingua::EN::Inflect
Fetching http://www.cpan.org/authors/id/D/DC/DCONWAY/Lingua-EN-Inflect-1.899.tar.gz ... OK
Configuring Lingua-EN-Inflect-1.899 ... OK
Building and testing Lingua-EN-Inflect-1.899 ... FAIL
! Installing Lingua::EN::Inflect failed. See ~/.cpanm/work/1433716104.4705/build.log for details. Retry with --force to force install it.
$ cat ~/.cpanm/work/1433716104.4705/build.log
...
Searching Lingua::EN::Inflect on cpanmetadb ...
--> Working on Lingua::EN::Inflect
Fetching http://www.cpan.org/authors/id/D/DC/DCONWAY/Lingua-EN-Inflect-1.899.tar.gz
-> OK
Unpacking Lingua-EN-Inflect-1.899.tar.gz
Entering Lingua-EN-Inflect-1.899
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.04)
Configuring Lingua-EN-Inflect-1.899
Running Build.PL
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Lingua-EN-Inflect' version '1.899'
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have Test::More 0 ... Yes (1.001014)
Building and testing Lingua-EN-Inflect-1.899
Building Lingua-EN-Inflect
Can't locate Env.pm in @INC (you may need to install the Env module) (@INC contains: ...)
BEGIN failed--compilation aborted at ~/.cpanm/work/1433716104.4705/Lingua-EN-Inflect-1.899/blib/lib/Lingua/EN/Inflect.pm line 5.
Compilation failed in require at t/classical_all.t line 1.
BEGIN failed--compilation aborted at t/classical_all.t line 1.
...
I installed Env module:
$cpanm Env
After it, installing Lingua::EN::Inflect finished successfully. It seems Lingua::EN::Inflect does not specify dependency on Env in META.json.