in reply to Modules install failure

'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

Replies are listed 'Best First'.
Re^2: Modules install failure
by Perlchaoui (Sexton) on Nov 17, 2018 at 18:07 UTC

    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

        Thank you Tux

        It worked fine after that

        Good day

      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

        Something is really bad/weird with your setup.

        From the above log, it looks as if (maybe) you have gcc installed, and the compilation of XML::Parser::Expat somewhat succeeded, but you can't load the DLLs.

        This might be some weird group policies that prevent you(r programs, like Perl) from loading DLLs or maybe you don't have the appropriate DLLs. How did you (try to) install XML::Parser::Expat? And/or how did you install your current Perl? If you can restore from backup or install a really fresh Perl while wiping out all traces of this current state, my suggestion is that you do so.

Re^2: Modules install failure
by Perlchaoui (Sexton) on Nov 14, 2018 at 10:01 UTC

    Thanks Corion

    I will check that and give a feedback