[magick-users] PerlMagick 5.56 - the dreaded api.h not found bug

Jay R. Ashworth jra at baylink.com
Mon Nov 24 16:41:11 PST 2003


I'm trying to get PerlMagick running on my Redhat7.3 box to support
WebGUI.  I had the 5.4.3.11-1 rpms for ImageMagick and ImageMagick-perl
loaded, and CPAN retrieved the 5.56 .pm (which is apparently
incorrectly named, BTW; CPAN tells me I now (after upgrading the rpm's)
have 5.5.7; note the difference in verison number shape).

So CPAN tried to do a make on the .pm, and blew up:

     ======
  CPAN.pm: Going to build J/JC/JCRISTY/PerlMagick-5.56.tar.gz

Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -llcms
Writing Makefile for Image::Magick
cp Magick.pm blib/lib/Image/Magick.pm
AutoSplitting blib/lib/Image/Magick.pm (blib/lib/auto/Image/Magick)
/usr/bin/perl -I/usr/lib/perl5/5.6.1/i386-linux -I/usr/lib/perl5/5.6.1
/usr/lib/perl5/5.6.1/ExtUtils/xsubpp  -typemap
/usr/lib/perl5/5.6.1/ExtUtils/typemap Magick.xs > Magick.xsc && mv
Magick.xsc Magick.c
gcc -c -I../ -I.. -I/usr/include/freetype2 -D_FILE_OFFSET_BITS=64
-D_REENTRANT -I/usr/X11R6/include -I/usr/include/libxml2
-fno-strict-aliasing -I/usr/local/include -O2 -march=i386 -mcpu=i686
-DVERSION=\"5.56\" -DXS_VERSION=\"5.56\" -fPIC
-I/usr/lib/perl5/5.6.1/i386-linux/CORE -DHAVE_CONFIG_H Magick.c
Magick.xs:81:24: magick/api.h: No such file or directory
make: *** [Magick.o] Error 1
  /usr/bin/make  -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible
     ======

Initial googling of mailing list archives suggested this may have been
because my 5.56 .pm was too new for my 5.4.3 rpms, so I hunted around
for far too long at the ImageMagick site and finally found the beloved
RedHat RPM's directory and grabbed 5.5.7 for RH73.

Same error.

I'm doing a perl -MCPAN -e 'CPAN::Shell->install(CPAN::Shell->r)' run
on my entire Perl/CPAN installation right now, but I don't reasonably
think that's going to help much.

Can anyone tell me where api.h is *supposed* to live, and why it might
not be there?  And if this is a common error, any chance the build
process might actually be tuned to catch it and give a useful error
message?

I'm liking CPAN... but it's interface leaves something to be desired...
and no, I'm not a good enough coder to fix it myself, I'm afraid.  Yet.

This is my next to last dependency and I'm in my fourth day.  Luckily,
I'm a fan of Star Trek,and I budgeted 3 weeks with management.  :-)

Any help greatly appreciated; my apologies to JCRISTY for breaking down
and mailing him directly; I know better.

Cheers,
-- jra
-- 
Jay R. Ashworth                                                jra at baylink.com
Member of the Technical Staff     Baylink                             RFC 2100
The Suncoast Freenet         The Things I Think
Tampa Bay, Florida        http://baylink.pitas.com             +1 727 647 1274

        Come see Linux Gazette in our new home: www.linuxgazette.net!


More information about the Magick-users mailing list