Hi Monks, I am trying to install a CPAN module but every time I try I get a long result that ends in an error.
When I run:
cpan install Algorithm::PermuteI get...
Reading '/Users/matthewsnyder/.cpan/Metadata' Database was generated on Thu, 15 Nov 2018 14:17:03 GMT Running install for module 'Algorithm::Permute' Running make for S/SL/SLOYD/Algorithm-Permute-0.16.tar.gz Checksum for /Users/matthewsnyder/.cpan/sources/authors/id/S/SL/SLOYD/ +Algorithm-Permute-0.16.tar.gz ok CPAN.pm: Building S/SL/SLOYD/Algorithm-Permute-0.16.tar.gz Checking if your kit is complete... Looks good Warning: prerequisite Test::LeakTrace 0 not found. Generating a Unix-style Makefile Writing Makefile for Algorithm::Permute Writing MYMETA.yml and MYMETA.json ---- Unsatisfied dependencies detected during ---- ---- SLOYD/Algorithm-Permute-0.16.tar.gz ---- Test::LeakTrace [build_requires] Running make test Delayed until after prerequisites Running make install Delayed until after prerequisites Running install for module 'Test::LeakTrace' Running make for L/LE/LEEJO/Test-LeakTrace-0.16.tar.gz Checksum for /Users/matthewsnyder/.cpan/sources/authors/id/L/LE/LEEJO/ +Test-LeakTrace-0.16.tar.gz ok CPAN.pm: Building L/LE/LEEJO/Test-LeakTrace-0.16.tar.gz Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Test::LeakTrace Writing MYMETA.yml and MYMETA.json cp lib/Test/LeakTrace.pm blib/lib/Test/LeakTrace.pm cp lib/Test/LeakTrace/JA.pod blib/lib/Test/LeakTrace/JA.pod cp lib/Test/LeakTrace/Script.pm blib/lib/Test/LeakTrace/Script.pm Running Mkbootstrap for LeakTrace () chmod 644 "LeakTrace.bs" "/usr/bin/perl" "-Iinc" -MExtUtils::Command::MM -e 'cp_nonempty' -- Le +akTrace.bs blib/arch/auto/Test/LeakTrace/LeakTrace.bs 644 "/usr/bin/perl" "-Iinc" "/System/Library/Perl/5.18/ExtUtils/xsubpp" - +typemap '/System/Library/Perl/5.18/ExtUtils/typemap' LeakTrace.xs > +LeakTrace.xsc mv LeakTrace.xsc LeakTrace.c cc -c -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstac +k-protector -Os -DVERSION=\"0.16\" -DXS_VERSION=\"0.16\" "-I/Syste +m/Library/Perl/5.18/darwin-thread-multi-2level/CORE" LeakTrace.c LeakTrace.xs:2:10: fatal error: 'EXTERN.h' file not found #include <EXTERN.h> ^~~~~~~~~~ 1 error generated. make: *** [LeakTrace.o] Error 1 LEEJO/Test-LeakTrace-0.16.tar.gz /usr/bin/make -- NOT OK 'YAML' not installed, will not store persistent state Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible Running make for S/SL/SLOYD/Algorithm-Permute-0.16.tar.gz Has already been unwrapped into directory /Users/matthewsnyder/.cpan +/build/Algorithm-Permute-0.16-bq41zl CPAN.pm: Building S/SL/SLOYD/Algorithm-Permute-0.16.tar.gz Warning: Prerequisite 'Test::LeakTrace => 0' for 'SLOYD/Algorithm-Perm +ute-0.16.tar.gz' failed when processing 'LEEJO/Test-LeakTrace-0.16.ta +r.gz' with 'make => NO'. Continuing, but chances to succeed are limit +ed. cp lib/Algorithm/Permute.pm blib/lib/Algorithm/Permute.pm Running Mkbootstrap for Permute () chmod 644 "Permute.bs" "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Permute.bs + blib/arch/auto/Algorithm/Permute/Permute.bs 644 cc -c -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstac +k-protector -Os -DVERSION=\"0.16\" -DXS_VERSION=\"0.16\" "-I/Syste +m/Library/Perl/5.18/darwin-thread-multi-2level/CORE" -DPERL_EXT cool +lex.c In file included from coollex.c:11: ./coollex.h:13:10: fatal error: 'EXTERN.h' file not found #include "EXTERN.h" ^~~~~~~~~~ 1 error generated. make: *** [coollex.o] Error 1 SLOYD/Algorithm-Permute-0.16.tar.gz /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible
I'm pretty experienced with scripting but this sort of stuff is out of my realm. I see a couple issues but I have not been able to resolve any of them:
1. Twice it says "fatal error: 'EXTERN.h' file not found". But I can locate this file. It's actually in many locations in my home folder and elsewhere on my hard drive.
And 2. Near the end: "/usr/bin/make -- NOT OK"
I tried reinstalling CPAN and updating Perl. The weirdest part is that I can install other modules just fine, provided I do sudo. But running the above command as a super user returns the same thing.
Any help is much appreciated!In reply to Can't install CPAN module "Make had returned bad status, install seems impossible" by msnyder424
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |