Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Errors While Installing Image::Magick

by roho (Bishop)
on Feb 15, 2024 at 03:39 UTC ( [id://11157695]=perlquestion: print w/replies, xml ) Need Help??

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

I am running 64-bit Strawberry Perl 5.24.1 on Windows 10 (see Perl Version Information below). I am getting errors trying to install module Image::Magick. Here is what I have done:

  • I downloaded and installed 64-bit Image Magick: "ImageMagick-7.1.1-28-Q16-HDRI-x64-dll.exe" (During installation, I selected options: "Install development headers and libraries" and "Install legacy utilities").
  • I ran "cpan install Image::Magick"(see CPAN Audit Trail below) and received an error message that said a C++ compiler was required, followed by over 1,400 compiler error messages.

    Strawberry Perl includes the gcc compiler (version 4.9.2).
    If the gcc compiler does not compile C++ code, how can Image::Magick be installed?

    Perl Version Information:

    perl -V Summary of my perl5 (revision 5 version 24 subversion 1) configuration +: Platform: osname=MSWin32, osvers=6.3, archname=MSWin32-x64-multi-thread uname='Win32 strawberry-perl 5.24.1.1 #1 Mon Jan 16 02:00:29 2017 +x64' config_args='undef' hint=recommended, useposix=true, d_sigaction=undef useithreads=define, usemultiplicity=define use64bitint=define, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags =' -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL +_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fwrapv + -fno-strict-aliasing -mms-bitfields', optimize='-s -O2', cppflags='-DWIN32' ccversion='', gccversion='4.9.2', gccosandvers='' intsize=4, longsize=4, ptrsize=8, doublesize=8, byteorder=12345678 +, doublekind=3 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=1 +6, longdblkind=3 ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='lo +ng long', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='g++', ldflags ='-s -L"C:\strawberry\perl\lib\CORE" -L"C:\straw +berry\c\lib"' libpth=C:\strawberry\c\lib C:\strawberry\c\x86_64-w64-mingw32\lib +C:\strawberry\c\lib\gcc\x86_64-w64-mingw32\4.9.2 libs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 +-ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -l +mpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 perllibs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdl +g32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_3 +2 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 libc=, so=dll, useshrplib=true, libperl=libperl524.a gnulibc_version='' Dynamic Linking: dlsrc=dl_win32.xs, dlext=xs.dll, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-mdll -s -L"C:\strawberry\perl\lib\CORE +" -L"C:\strawberry\c\lib"' Characteristics of this binary (from libperl): Compile-time options: HAS_TIMES HAVE_INTERP_INTERN MULTIPLICITY PERLIO_LAYERS PERL_COPY_ON_WRITE PERL_DONT_CREATE_GVSV PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS PERL_MALLOC_WRAP PERL_PRESERVE_IVUV USE_64_BIT +_INT USE_ITHREADS USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_LOCALE_TIME USE_PERLIO USE_PERL_ATOF Built under MSWin32 Compiled at Jan 16 2017 02:12:13 @INC: C:/Strawberry/perl/site/lib/MSWin32-x64-multi-thread C:/Strawberry/perl/site/lib C:/Strawberry/perl/vendor/lib C:/Strawberry/perl/lib .

    CPAN Install Audit Trail:

    cpan install Image::Magick CPAN: CPAN::SQLite loaded ok (v0.211) Database was generated on Thu, 15 Feb 2024 00:20:57 GMT Running install for module 'Image::Magick' CPAN: Digest::SHA loaded ok (v6.04) CPAN: Compress::Zlib loaded ok (v2.07) Checksum for C:\strawberry\cpan\sources\authors\id\J\JC\JCRISTY\Image- +Magick-7.1.1-28.tar.gz ok CPAN: Archive::Tar loaded ok (v2.24) CPAN: YAML::XS loaded ok (v0.89) CPAN: CPAN::Meta::Requirements loaded ok (v2.140) CPAN: Parse::CPAN::Meta loaded ok (v2.150010) CPAN: CPAN::Meta loaded ok (v2.150010) CPAN: Module::CoreList loaded ok (v5.20170114_24) Configuring J/JC/JCRISTY/Image-Magick-7.1.1-28.tar.gz with Makefile.PL Gonna create 'libMagickCore.a' from 'C:\Program Files\ImageMagick-7.1. +1-Q16-HDRI\CORE_RL_MagickCore_.dll' Checking if your kit is complete... Looks good Generating a dmake-style Makefile Writing Makefile for Image::Magick Writing MYMETA.yml and MYMETA.json JCRISTY/Image-Magick-7.1.1-28.tar.gz C:\Strawberry\perl\bin\perl.exe Makefile.PL -- OK Running make for J/JC/JCRISTY/Image-Magick-7.1.1-28.tar.gz cp Magick.pm blib\lib\Image\Magick.pm AutoSplitting blib\lib\Image\Magick.pm (blib\lib\auto\Image\Magick) Running Mkbootstrap for Magick () "C:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command -e chmod -- 644 +"Magick.bs" "C:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command::MM -e cp_nonemp +ty -- Magick.bs blib\arch\auto\Image\Magick\Magick.bs 644 "C:\Strawberry\perl\bin\perl.exe" "C:\Strawberry\perl\lib\ExtUtils\xsu +bpp" -typemap C:\strawberry\perl\lib\ExtUtils\typemap -typemap C:\st +rawberry\cpan\build\Image-Magick-7.1.1-6\typemap Magick.xs > Magick. +xsc "C:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command -e mv -- Magick. +xsc Magick.c gcc -c -I"C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\include" + -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPE +RL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fwrapv -fno-strict-aliasing +-mms-bitfields -s -O2 -DVERSION=\"7.1.1\" -DXS_VERSION =\"7.1.1\" "-IC:\strawberry\perl\lib\CORE" -D_LARGE_FILES=1 -DHAVE_C +ONFIG_H Magick.c In file included from C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\incl +ude/MagickCore/magick-config.h:25:0, from C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\incl +ude/MagickCore/MagickCore.h:29, from Magick.xs:56: C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\include/MagickCore/magick- +baseconfig.h:279:6: error: #error ImageMagick was build with a 64 cha +nnel bit mask and that requires a C++ compiler # error ImageMagick was build with a 64 channel bit mask and that +requires a C++ compiler ^ In file included from C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\incl +ude/MagickCore/stream.h:25:0, from C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\incl +ude/MagickCore/blob.h:49, from C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\incl +ude/MagickCore/image.h:111, from C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\incl +ude/MagickCore/draw.h:22, from C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\incl +ude/MagickCore/annotate.h:21, from C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\incl +ude/MagickCore/MagickCore.h:80, from Magick.xs:56: C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\include/MagickCore/pixel.h +:34:14: error: expected '{' before ':' token typedef enum : MagickOffsetType ^ C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\include/MagickCore/pixel.h +:76:3: warning: data definition has no type or storage class } ChannelType; /* must correspond to PixelChannel */ ^ C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\include/MagickCore/pixel.h +:227:3: error: expected '=', ',', ';', 'asm' or '__attribute__' befor +e 'SetPixelChannelMask' SetPixelChannelMask(Image *,const ChannelType); ^ In file included from C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\incl +ude/MagickCore/draw.h:22:0, from C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\incl +ude/MagickCore/annotate.h:21, from C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\incl +ude/MagickCore/MagickCore.h:80, from Magick.xs:56: C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\include/MagickCore/image.h +:267:3: error: expected specifier-qualifier-list before 'ChannelType' ChannelType ^ C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\include/MagickCore/image.h +:431:3: error: expected specifier-qualifier-list before 'ChannelType' ChannelType ^ C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\include/MagickCore/image.h +:481:3: error: expected '=', ',', ';', 'asm' or '__attribute__' befor +e 'SetImageChannelMask' SetImageChannelMask(Image *,const ChannelType); ^ In file included from C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\incl +ude/MagickCore/MagickCore.h:135:0, from Magick.xs:56: C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\include/MagickCore/pixel-a +ccessor.h: In function 'GetPixela': C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\include/MagickCore/pixel-a +ccessor.h:51:21: error: 'Image' has no member named 'channel_map' return(pixel[image->channel_map[aPixelChannel].offset]);

    This is followed by over 1,400 more error messages like this.

    "It's not how hard you work, it's how much you get done."

  • Replies are listed 'Best First'.
    Re: Errors While Installing Image::Magick
    by syphilis (Archbishop) on Feb 15, 2024 at 07:16 UTC
      I've been routinely building and installing Image::Magick on the monthly perl devel releases using ImageMagick-7.1.1-19-Q16-HDRI-x64-dll.exe, which I obtained from the ImageMagick website.
      The current version is ImageMagick-7.1.1-28-Q16-HDRI-x64-dll.exe, and I suggest you try it.
      Having downloaded that file (the "19" version), I executed it, and directed its stuff into C:\d\ImageMagick-7.1.1-Q16-HDRI.
      I then simply insert C:\d\ImageMagick-7.1.1-Q16-HDRI at the beginning of the path, and install Image::Magick by running cpan -i ImageMagick.
      Then I have:
      > perl -MImage::Magick -le "print $Image::Magick::VERSION;" 7.1.1
      I suggest you try that same approach, using the "28" version of the executable.
      If you have trouble with that, let us know - and I'll grab the same source and try to figure out what has gone wrong.
      UPDATE: That all looks a bit too simple ... I wonder if I've missed something ... anyway, see how you go.

      Cheers,
      Rob
        Thanks syphilis, but that is essentially what I did originally, only I used the default Image Magic install path (C:\Program Files\ImageMagick-7.1.1-Q16-HDRI), and the Image Magic install program put the pathname at the top of my system path. Is there something special about using a different install path (C:\d\ImageMagick...) rather than the default installation path?

        "It's not how hard you work, it's how much you get done."

          Your problem seems to be associated with the need for a C++ compiler.
          I don't hit that problem ... but then I'm on a modern perl, using (a modern) gcc-13.1.0.
          But I wonder if there's a compiler switch (maybe -std=c++11) that would fix that for you.
          I'm pretty sure you can modify $Config{{ccflags} by hand-editing the "ccflags" entries in lib/Config.pm and lib/Config_heavy.pl, if you want to give that a try.

          Below is what I just got (minus some compilation warnings).
          Not sure why one test failed ... that doesn't normally happen, AFAIK.

          Cheers,
          Rob
          Configuring J/JC/JCRISTY/Image-Magick-7.1.1-28.tar.gz with Makefile.PL Gonna create 'libMagickCore.a' from 'C:\d\ImageMagick-7.1.1-Q16-HDRI\C +ORE_RL_MagickCore_.dll' Checking if your kit is complete... Looks good Generating a gmake-style Makefile Writing Makefile for Image::Magick Writing MYMETA.yml and MYMETA.json JCRISTY/Image-Magick-7.1.1-28.tar.gz D:\perl-5.39.7-1320-ucrt-mcf\bin\MSWin32-x64-multi-thread-ld\perl.ex +e Makefile.PL -- OK Running make for J/JC/JCRISTY/Image-Magick-7.1.1-28.tar.gz cp Magick.pm blib\lib\Image\Magick.pm AutoSplitting blib\lib\Image\Magick.pm (blib\lib\auto\Image\Magick) Running Mkbootstrap for Magick () "D:\perl-5.39.7-1320-ucrt-mcf\bin\MSWin32-x64-multi-thread-ld\perl.exe +" -MExtUtils::Command -e chmod -- 644 "Magick.bs" "D:\perl-5.39.7-1320-ucrt-mcf\bin\MSWin32-x64-multi-thread-ld\perl.exe +" -MExtUtils::Command::MM -e cp_nonempty -- Magick.bs blib\arch\auto\ +Image\Magick\Magick.bs 644 "D:\perl-5.39.7-1320-ucrt-mcf\bin\MSWin32-x64-multi-thread-ld\perl.exe +" "D:\perl-5.39.7-1320-ucrt-mcf\lib\ExtUtils/xsubpp" -typemap D:\per +l-5.39.7-1320-ucrt-mcf\lib\ExtUtils\typemap -typemap C:\Users\Owner\. +cpan\build\Image-Magick-7.1.1-16\typemap Magick.xs > Magick.xsc "D:\perl-5.39.7-1320-ucrt-mcf\bin\MSWin32-x64-multi-thread-ld\perl.exe +" -MExtUtils::Command -e mv -- Magick.xsc Magick.c gcc -c -I"C:\d\ImageMagick-7.1.1-Q16-HDRI\include" -Wall -Wextra -Wer +ror=pointer-arith -Wno-format -Wno-long-long -Werror=vla -std=c99 -DW +IN32 -DWIN64 -fdiagnostics-color=never -DPERL_TEXTMODE_SCRIPTS -DMULT +IPLICITY -DPERL_IMPLICIT_SYS -DUSE_PERLIO -D__USE_MINGW_ANSI_STDIO -f +wrapv -fno-strict-aliasing -mms-bitfields -Os -DVERSION=\"7.1.1\" - +DXS_VERSION=\"7.1.1\" "-ID:\perl-5.39.7-1320-ucrt-mcf\lib\MSWin32-x6 +4-multi-thread-ld\CORE" -D_LARGE_FILES=1 -DHAVE_CONFIG_H Magick.c [ snipped some compilation warnings for brevity ] "D:\perl-5.39.7-1320-ucrt-mcf\bin\MSWin32-x64-multi-thread-ld\perl.exe +" -MExtUtils::Mksymlists \ -e "Mksymlists('NAME'=>\"Image::Magick\", 'DLBASE' => 'Magick', ' +DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => +[]);" g++ Magick.def -o blib\arch\auto\Image\Magick\Magick.dll -shared -s -L +"D:\perl-5.39.7-1320-ucrt-mcf\lib\MSWin32-x64-multi-thread-ld\CORE" - +L"C:\winlibs-ucrt-1320\mingw64\lib" -L"C:\winlibs-ucrt-1320\mingw64\x +86_64-w64-mingw32\lib" -L"C:\winlibs-ucrt-1320\mingw64\lib\gcc\x86_64 +-w64-mingw32\13.2.0" -L"C:/Users/Owner/.cpan/build/Image-Magick-7.1.1 +-16" -L"C:\d\ImageMagick-7.1.1-Q16-HDRI\lib" Magick.o "D:\perl-5.3 +9.7-1320-ucrt-mcf\lib\MSWin32-x64-multi-thread-ld\CORE\libperl539.a" +"libMagickCore.a" "C:\winlibs-ucrt-1320\mingw64\x86_64-w64-mingw32\li +b\libmoldname.a" "C:\winlibs-ucrt-1320\mingw64\x86_64-w64-mingw32\lib +\libkernel32.a" "C:\winlibs-ucrt-1320\mingw64\x86_64-w64-mingw32\lib\ +libuser32.a" "C:\winlibs-ucrt-1320\mingw64\x86_64-w64-mingw32\lib\lib +gdi32.a" "C:\winlibs-ucrt-1320\mingw64\x86_64-w64-mingw32\lib\libwins +pool.a" "C:\winlibs-ucrt-1320\mingw64\x86_64-w64-mingw32\lib\libcomdl +g32.a" "C:\winlibs-ucrt-1320\mingw64\x86_64-w64-mingw32\lib\libadvapi +32.a" "C:\winlibs-ucrt-1320\mingw64\x86_64-w64-mingw32\lib\libshell32 +.a" "C:\winlibs-ucrt-1320\mingw64\x86_64-w64-mingw32\lib\libole32.a" +"C:\winlibs-ucrt-1320\mingw64\x86_64-w64-mingw32\lib\liboleaut32.a" " +C:\winlibs-ucrt-1320\mingw64\x86_64-w64-mingw32\lib\libnetapi32.a" "C +:\winlibs-ucrt-1320\mingw64\x86_64-w64-mingw32\lib\libuuid.a" "C:\win +libs-ucrt-1320\mingw64\x86_64-w64-mingw32\lib\libws2_32.a" "C:\winlib +s-ucrt-1320\mingw64\x86_64-w64-mingw32\lib\libmpr.a" "C:\winlibs-ucrt +-1320\mingw64\x86_64-w64-mingw32\lib\libwinmm.a" "C:\winlibs-ucrt-132 +0\mingw64\x86_64-w64-mingw32\lib\libversion.a" "C:\winlibs-ucrt-1320\ +mingw64\x86_64-w64-mingw32\lib\libodbc32.a" "C:\winlibs-ucrt-1320\min +gw64\x86_64-w64-mingw32\lib\libodbccp32.a" "C:\winlibs-ucrt-1320\ming +w64\x86_64-w64-mingw32\lib\libcomctl32.a" -Wl,--enable-auto-image-bas +e "D:\perl-5.39.7-1320-ucrt-mcf\bin\MSWin32-x64-multi-thread-ld\perl.exe +" -MExtUtils::Command -e chmod -- 755 blib\arch\auto\Image\Magick\Mag +ick.dll JCRISTY/Image-Magick-7.1.1-28.tar.gz C:\make\bin\make.EXE -- OK The current configuration of allow_installing_outdated_dists is 'ask/n +o', but for this option we would need 'CPAN::DistnameInfo' installed. + Please install 'CPAN::DistnameInfo' as soon as possible. As long as +we are not equipped with 'CPAN::DistnameInfo' this option does not ta +ke effect Running make test for JCRISTY/Image-Magick-7.1.1-28.tar.gz "D:\perl-5.39.7-1320-ucrt-mcf\bin\MSWin32-x64-multi-thread-ld\perl.exe +" -MExtUtils::Command::MM -e cp_nonempty -- Magick.bs blib\arch\auto\ +Image\Magick\Magick.bs 644 "D:\perl-5.39.7-1320-ucrt-mcf\bin\MSWin32-x64-multi-thread-ld\perl.exe +" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harn +ess::Switches; test_harness(0, 'blib\lib', 'blib\arch')" t/*.t t/blob.t .......... ok t/composite.t ..... ok t/filter.t ........ Failed 1/58 subtests t/getattribute.t .. ok t/montage.t ....... ok t/ping.t .......... ok t/read.t .......... ok t/setattribute.t .. ok t/write.t ......... ok Test Summary Report ------------------- t/filter.t (Wstat: 0 Tests: 58 Failed: 1) Failed test: 2 Files=9, Tests=273, 2 wallclock secs ( 0.03 usr + 0.00 sys = 0.03 C +PU) Result: FAIL Failed 1/9 test programs. 1/273 subtests failed. make.EXE: *** [makefile:1047: test_dynamic] Error 255 JCRISTY/Image-Magick-7.1.1-28.tar.gz C:\make\bin\make.EXE test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports JCRISTY/Image-Magick-7.1.1-28.tar.gz Running make install for JCRISTY/Image-Magick-7.1.1-28.tar.gz "D:\perl-5.39.7-1320-ucrt-mcf\bin\MSWin32-x64-multi-thread-ld\perl.exe +" -MExtUtils::Command::MM -e cp_nonempty -- Magick.bs blib\arch\auto\ +Image\Magick\Magick.bs 644 Files found in blib\arch: installing files in blib\lib into architectu +re dependent library tree Installing D:\perl-5.39.7-1320-ucrt-mcf\site\lib\MSWin32-x64-multi-thr +ead-ld\auto\Image\Magick\Magick.dll Appending installation info to D:\perl-5.39.7-1320-ucrt-mcf\lib\MSWin3 +2-x64-multi-thread-ld/perllocal.pod JCRISTY/Image-Magick-7.1.1-28.tar.gz C:\make\bin\make.EXE install -- OK
    Re: Errors While Installing Image::Magick
    by hv (Prior) on Feb 15, 2024 at 04:39 UTC

      I don't do Windows, but I note that the first error says "ImageMagick was build with a 64 channel bit mask and that requires a C++ compiler". So I think you need a version of ImageMagick that was not built with a 64-channel bitmask. It is not immediately obvious what the bitmask size is for the available builds, but you have installed what appears to be the highest-spec of the Win64 images available at their downloads page: maybe you will get further if you try one of the other options there.

      If that doesn't work, you could try building it yourself from source using the same gcc that Strawberry Perl is using.

        Thanks for the suggestions, hv. I uninstalled 64-bit Image Magick and installed 32-bit Image Magick, but still got errors. I am returning to 64-bit Image Magick.

        Update: I also installed 64-bit Image Magick "Q8" instead of "Q16", but it did not help. I still get the same errors.

        "It's not how hard you work, it's how much you get done."

    Re: Errors While Installing Image::Magick
    by Anonymous Monk on Feb 15, 2024 at 07:16 UTC

      I have slightly dated IM installed (and have 5.24 among others), and succeeded, not so long ago, installing Image::Magick. Now upgrading/installing fails as you describe (looks like no more hassle-free IM in Strawberry, again, same as ~10 years ago). However, try

      https://cpan.metacpan.org/authors/id/J/JC/JCRISTY/Image-Magick-7.1.0-0 +.tar.gz

      C:\berrybrew\5.24.0.1_64_PDL>convert -version Version: ImageMagick 7.1.1-11 Q16-HDRI x64 11ffa6e:20230529 https://im +agemagick.org ... skipped C:\berrybrew\5.24.0.1_64_PDL>perl -MImage::Magick -E "say $Image::Magi +ck::VERSION" 7.1.0
    Re: Errors While Installing Image::Magick
    by harangzsolt33 (Chaplain) on Feb 15, 2024 at 04:01 UTC
      I looked at it again, and it seems like gcc is installed and it's working, but there is a misconfiguration somewhere.

      Yes, but what if gcc is not in the PATH ? Open Command Prompt and type in GCC and see what happens or type in "SET PATH" and see what it says. The system PATH environment variable can be modified in the Control Panel >> System >> Advanced >> Environment Variables. Wait, did you say you have Windows 10? I just gave you instructions for Windows XP. Well, I think, Windows 10 is similar. The "Advanced" is a tab in Windows XP, but I think, it appears as a link on the left side in Windows 10.. If you get GCC working but it's still won't work as desired, I'm afraid you might have to reinstall Strawberry Perl. :/

        gcc is in the PATH.

        "It's not how hard you work, it's how much you get done."

    Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Domain Nodelet?
    Node Status?
    node history
    Node Type: perlquestion [id://11157695]
    Approved by marto
    Front-paged by Corion
    help
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this?Last hourOther CB clients
    Other Users?
    Others meditating upon the Monastery: (6)
    As of 2024-06-24 01:31 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found

      Notices?
      erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.