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."
In reply to Errors While Installing Image::Magick by roho
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |