in reply to Re: Errors While Installing Image::Magick
in thread Errors While Installing Image::Magick
"It's not how hard you work, it's how much you get done."
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Errors While Installing Image::Magick
by syphilis (Archbishop) on Feb 15, 2024 at 09:24 UTC | |
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
| [reply] [d/l] [select] |
by syphilis (Archbishop) on Feb 15, 2024 at 11:29 UTC | |
Not that I can find. Having upgraded the ImageMagick executable from release 19 to release 28, I hit the same issue. To fix, I did a cd to the .cpan build directory and started by removing the failed cpan -fi Image::Magick attempt: That worked fine for me, though the single test still failed: Update: Looks like that one test fails for me because the font "Generic.ttf" can't be found: Update 2: In the previous versions of Image::Magick that I've built, "Generic.tiff" has been provided in both the "demo" and the "t" folders - though the MANIFEST file listed only "demo/Generic.tiff".. Now, however, "Generic.tiff" is to be found only in the "demo" folder. Copying "demo/Generic.tiff" to "t/Generic.tiff" allows all tests to pass. Cheers, Rob | [reply] [d/l] [select] |
by roho (Bishop) on Feb 15, 2024 at 19:11 UTC | |
I'm closer, thanks to you, but still no cigar. :-) Update: I believe the basic question comes down to whether the gcc compiler in Strawberry Perl 5.24.1 is capable of compiling the code for Image::Magick, and if not, is there a viable alternative that does not involve upgrading to a more recent version of Perl? For now, I must remain at 5.24.1 for a number of reasons. I did the "Clean and rerun install" -- got the following errors with gmake test: --------------------------------------------------------------------------------------------- cd \Users\Owner\.cpan\build\Image-Magick-7.1.1-18 C:\Users\Owner\.cpan\build\Image-Magick-7.1.1-18>gmake realclean C:\Users\Owner\.cpan\build\Image-Magick-7.1.1-18>perl Makefile.PL CC=g++ C:\Users\Owner\.cpan\build\Image-Magick-7.1.1-18>gmake test C:\Users\Owner\.cpan\build\Image-Magick-7.1.1-18>gmake install
I tried editing the following files and found this: ---------------------------------------------------------- C:\Strawberry\perl\lib\Config.pm -- No "ccflags" entries in this file. C:\Strawberry\perl\lib\Config_heavy.pl -- I found: cc='$cc', ccflags ='$ccflags', but $ccflags is set somewhere else (this is the only reference). I ran the following to display the contents of $Config{ccflags}: ---------------------------------------------------------------------------- perl -MConfig -e "print $Config{ccflags} -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fwrapv -fno-strict-aliasing -mms-bitfields I fixed the missing "Generic.tiff" file: --------------------------------------------- cd C:\Strawberry\cpan\build\Image-Magick-7.1.1-10 copy demo\Generic.ttf t\
"It's not how hard you work, it's how much you get done." | [reply] [d/l] |
by syphilis (Archbishop) on Feb 15, 2024 at 23:23 UTC | |
by roho (Bishop) on Feb 16, 2024 at 02:17 UTC | |
|