Perlchaoui has asked for the wisdom of the Perl Monks concerning the following question:

Hi wise Monks

I am facing an issue trying to install Perl modules from metacpan. I am doing it on a Win 10 OS , Perl 5

Below the output in my console

cpan> install Text::CSV_XS Fetching with LWP: http://cpan.strawberryperl.com/authors/01mailrc.txt.gz Fetching with LWP: http://cpan.strawberryperl.com/modules/02packages.details.txt.gz Fetching with LWP: http://cpan.strawberryperl.com/modules/03modlist.data.gz Database was generated on Sun, 11 Nov 2018 11:56:48 GMT Updating database file ... Done! Running install for module 'Text::CSV_XS' Checksum for C:\STRAWB~1\cpan\sources\authors\id\H\HM\HMBRAND\Text-CSV +_XS-1.37.tgz ok Scanning cache C:\STRAWB~1\cpan\build for sizes ...................................................................... +......DONE Configuring H/HM/HMBRAND/Text-CSV_XS-1.37.tgz with Makefile.PL Checking if your kit is complete... Looks good Generating a dmake-style Makefile Writing Makefile for Text::CSV_XS Writing MYMETA.yml and MYMETA.json HMBRAND/Text-CSV_XS-1.37.tgz C:\Strawberry\perl\bin\perl.exe Makefile.PL -- OK Running make for H/HM/HMBRAND/Text-CSV_XS-1.37.tgz ---- Unsatisfied dependencies detected during ---- ---- HMBRAND/Text-CSV_XS-1.37.tgz ---- Encode [requires,optional] cp CSV_XS.pm blib\lib\Text\CSV_XS.pm Running Mkbootstrap for CSV_XS () "C:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command -e chmod -- 644 +"CSV_XS.bs" "C:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command::MM -e cp_nonemp +ty -- CSV_XS.bs blib\arch\auto\Text\CSV_XS\CSV_XS.bs 644 "C:\Strawberry\perl\bin\perl.exe" "C:\Strawberry\perl\lib\ExtUtils\xsu +bpp" -typemap C:\STRAWB~1\perl\lib\ExtUtils\typemap CSV_XS.xs > CSV +_XS.xsc "C:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command -e mv -- CSV_XS. +xsc CSV_XS.c gcc -c -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_ +SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fwrapv -fno-stri +ct-aliasing -mms-bitfields -s -O2 -DVERSION=\"1.37\" -DXS_VER +SION=\"1.37\" "-IC:\STRAWB~1\perl\lib\CORE" CSV_XS.c 'gcc' n’est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes. dmake.exe: Error code 129, while making 'CSV_XS.o' HMBRAND/Text-CSV_XS-1.37.tgz C:\STRAWB~1\c\bin\dmake.exe -- NOT OK Stopping: 'install' failed for 'Text::CSV_XS'. Failed during this command: HMBRAND/Text-CSV_XS-1.37.tgz : make NO

Can someone help on this

I am facing the same kind of issue if i want to install Data::Dumper or Data::Peek dependencies. In fact same for other modules but it's strange because i could install successfully for instance Spreadsheet::Read just before

Thank you

Replies are listed 'Best First'.
Re: Modules install failure
by Corion (Patriarch) on Nov 13, 2018 at 19:35 UTC
    'gcc' n’est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes.

    For some strange reason, you don't have gcc in a directory listed in $ENV{PATH}. Usually this program is included with Strawberry Perl and comes with it when you install it. Maybe you just need to append the proper path to $ENV{PATH}:

    set PATH=%PATH%;C:\Strawberry\c\bin

      Hello Corion

      I did what you suggested but it still doesn't work unfortunately

      Here the output in the console

      cpan> install Text::CSV_XS Running install for module 'Text::CSV_XS' HMBRAND/Text-CSV_XS-1.37.tgz Has already been unwrapped into directory C:\STRAWB~1\cpan\build\Tex +t-CSV_XS-1.37-U49GBM HMBRAND/Text-CSV_XS-1.37.tgz Has already been prepared HMBRAND/Text-CSV_XS-1.37.tgz Could not make: Unknown error

      Same issue when i want to install another module

      cpan> install Spreadsheet::CSV Running install for module 'Spreadsheet::CSV' Checksum for C:\STRAWB~1\cpan\sources\authors\id\D\DD\DDICK\Spreadshee +t-CSV-0.20.tar.gz ok Configuring D/DD/DDICK/Spreadsheet-CSV-0.20.tar.gz with Makefile.PL Checking if your kit is complete... Looks good Generating a dmake-style Makefile Writing Makefile for Spreadsheet::CSV Writing MYMETA.yml and MYMETA.json DDICK/Spreadsheet-CSV-0.20.tar.gz C:\Strawberry\perl\bin\perl.exe Makefile.PL -- OK Running make for D/DD/DDICK/Spreadsheet-CSV-0.20.tar.gz cp lib/Spreadsheet/CSV.pm blib\lib\Spreadsheet\CSV.pm DDICK/Spreadsheet-CSV-0.20.tar.gz C:\STRAWB~1\c\bin\dmake.exe -- OK Running make test "C:\Strawberry\perl\bin\perl.exe" "-MExtUtils::Command::MM" "-MTest::H +arness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib\l +ib', 'blib\arch')" t/*.t t/00-load.t ......... 1/? # Failed test 'use Spreadsheet::CSV;' # at t/00-load.t line 10. # Tried to use 'Spreadsheet::CSV'. # Error: Can't load 'C:/Strawberry/perl/vendor/lib/auto/XML/Parse +r/Expat/Expat.xs.dll' for module XML::Parser::Expat: load_file:Le mod +ule spÚcifiÚ est introuvable at C:/Strawberry/perl/lib/DynaLoader.pm +line 193. # at C:/Strawberry/perl/vendor/lib/XML/Parser.pm line 18. # Compilation failed in require at C:/Strawberry/perl/vendor/lib/XML/P +arser.pm line 18. # BEGIN failed--compilation aborted at C:/Strawberry/perl/vendor/lib/X +ML/Parser.pm line 22. # Compilation failed in require at C:\STRAWB~1\cpan\build\Spreadsheet- +CSV-0.20-lfdP96\blib\lib/Spreadsheet/CSV.pm line 10. # BEGIN failed--compilation aborted at C:\STRAWB~1\cpan\build\Spreadsh +eet-CSV-0.20-lfdP96\blib\lib/Spreadsheet/CSV.pm line 10. # Compilation failed in require at t/00-load.t line 10. # BEGIN failed--compilation aborted at t/00-load.t line 10. Bailout called. Further testing stopped: Use of uninitialized value $Spreadsheet::CSV::VERSION in concatenation + (.) or string at t/00-load.t line 13. # Looks like your test exited with 255 just after 1. FAILED--Further testing stopped. dmake.exe: Error code 255, while making 'test_dynamic' DDICK/Spreadsheet-CSV-0.20.tar.gz C:\STRAWB~1\c\bin\dmake.exe test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports DDICK/Spreadsheet-CSV-0.20.tar.gz Stopping: 'install' failed for 'Spreadsheet::CSV'. Failed during this command: DDICK/Spreadsheet-CSV-0.20.tar.gz : make_test NO

      What is going wrong ?!

      Thanks again

        Additionally to what the Windows guru's told you or suggested, I'd say to start clearing out your C:\STRAWB~1\cpan\build\ before re-trying anything.

        That folder contains all your build efforts from cpan, including the FAIL'd ones.


        Enjoy, Have FUN! H.Merijn

        Hello Monastery

        Is someone able to provide a kind of support for this concern. I have my PATH and my variables set correctly

        Many thanks again

      Thanks Corion

      I will check that and give a feedback

Re: Modules install failure
by Anonymous Monk on Oct 07, 2020 at 13:30 UTC
    Hi

    In my case (on a red hat 8), errors such as those

    Configuring Text-CSV_XS-1.44 ... OK Building and testing Text-CSV_XS-1.44 ... FAIL ! Installing Text::CSV_XS failed. See /root/.cpanm/work/1602076325.241 +59/build.log for details. Retry with --force to force install it. ! Installing the dependencies failed: Module 'Text::CSV_XS' is not ins +talled ! Bailing out the installation for Class-CSV-1.03. (...) Building and testing Email-Address-XS-1.04 ... FAIL ! Installing Email::Address::XS failed. See /root/.cpanm/work/16020762 +36.22939/build.log for details. Retry with --force to force install i +t. --> Working on MIME::Types
    were caused by missing gcc
    yum install gcc -y
    to fix