Image::Magick

james99

Verified User
Joined
Jul 24, 2004
Messages
20
I'm having problems getting ImageMagick to work.

I'm able to get it installed using "yum install ImageMagick"

However, installing the perl module (Image::Magick) proves difficult.

I've tried both using cpan's install and also from source, and both times when it gets to:

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

Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lMagick
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 /usr/lib/perl5/5.8.1/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.1/ExtUtils/typemap Magick.xs > Magick.xsc && mv Magick.xsc Magick.c
gcc -c -I../ -I.. -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I/usr/include/libxml2 -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -g -O2 -Wall -pthread -O2 -g -pipe -march=i386 -mcpu=i686 -DVERSION=\"6.0.2\" -DXS_VERSION=\"6.0.2\" -fPIC "-I/usr/lib/perl5/5.8.1/i386-linux-thread-multi/CORE" -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H Magick.c
Magick.xs:63:24: magick/api.h: No such file or directory
Magick.xs:66:28: magick/xwindow.h: No such file or directory
Magick.xs:141: error: syntax error before "MagickRealType"
Magick.xs:141: warning: no semicolon at end of struct or union
Magick.xs:148: error: syntax error before '*' token
Magick.xs:148: warning: type defaults to `int' in declaration of `image_reference'
Magick.xs:148: warning: data definition has no type or storage class

I'll get hundreds of lines of errors after that step. If you want all of the errors after this point, let me know... it's too long to post here.

I'm on Fedora 1 if you're wondering.

I've also tried installing ImageMagick via rpm first, which goes great, but then installing the module will still give that error.
 
Hey,

Magick.xs:63:24: magick/api.h: No such file or directory

It's not finding the api.h file there... So, probably the makefile for the module (PerlMagick) needs some adjustment.

Find api.h on your system, then compare it's path with what's inside the makefile for the module.

Of course, if api.h isn't on your system then that could be causing the problem.

David
 
There's no api.h :-/

I just gave that a try, and it still isn't working.

When I try to view the perl module list in DA, it says:

Unable to open /usr/lib/perl5/vendor_perl/5.8.1 for reading
Unable to open /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi for reading

The script I was trying to use for editting images says:

Software error:

Image::Magick object version 5.56 does not match bootstrap parameter 6.0.4 at /usr/lib/perl5/5.8.1/i386-linux-thread-multi/DynaLoader.pm line 249.
Compilation failed in require at add-image.cgi line 7.
BEGIN failed--compilation aborted at add-image.cgi line 7.

Thanks everyone.
 
Last edited:
Back
Top