Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

[OT?] Installing (configuring) Image::Magick

by graq (Curate)
on Aug 15, 2008 at 10:14 UTC ( [id://704511]=perlquestion: print w/replies, xml ) Need Help??

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

I have a redhat box that won't install Image::Magick with (amongst others) JPEG support. I can't make ./configure see the JPEG libraries.

I have these jpeg libraries. Which appear to have installed very nicely here:

find / -name "libjpeg*" -print /usr/lib/libjpeg.so.62.0.0 /usr/lib/libjpeg.so.62 /usr/share/doc/libjpeg-6b

I have run ldconfig (and added /usr/lib to /etc/ld.co.conf - which resulted in a duplicate warning).

And yet, still when I run ./configure, I get this:

ImageMagick is configured as follows. Please verify that this configur +ation matches your expectations. Host system type: i686-pc-linux-gnu Build system type: i686-pc-linux-gnu Option Value ---------------------------------------------------------------------- +--------- Shared libraries --enable-shared=yes yes Static libraries --enable-static=yes yes Module support --with-modules=yes yes GNU ld --with-gnu-ld=yes yes Quantum depth --with-quantum-depth=16 16 High Dynamic Range Imagery --enable-hdri=no no Delegate Configuration: BZLIB --with-bzlib=yes no Autotrace --with-autotrace=no no DJVU --with-djvu=yes no DPS --with-dps=yes no FlashPIX --with-fpx=yes no FontConfig --with-fontconfig=no no FreeType --with-freetype=yes no GhostPCL None pcl6 (unknown) GhostXPS None gxps (unknown) Ghostscript None gs (7.07) result_ghostscript_font_dir='none' Ghostscript fonts --with-gs-font-dir=default Ghostscript lib --with-gslib=yes no (failed tests) Graphviz --with-gvc=yes no JBIG --with-jbig= no JPEG v1 --with-jpeg=yes no JPEG-2000 --with-jp2=yes no LCMS --with-lcms=yes no LQR --with-lqr=no no Magick++ --with-magick-plus-plus=yes yes OpenEXR --with-openexr=yes no PERL --with-perl=yes /usr/bin/perl PNG --with-png=yes no RSVG --with-rsvg=no no TIFF --with-tiff=yes no result_windows_font_dir='none' Windows fonts --with-windows-font-dir= WMF --with-wmf=yes no X11 --with-x= no XML --with-xml=no no ZLIB --with-zlib=yes yes X11 Configuration: X_CFLAGS = X_PRE_LIBS = X_LIBS = X_EXTRA_LIBS = Options used to compile and link: PREFIX = /usr/local EXEC-PREFIX = /usr/local VERSION = 6.4.2 CC = gcc CFLAGS = -g -O2 -Wall -W -pthread MAGICK_CFLAGS = -g -O2 -Wall -W -pthread CPPFLAGS = -I/usr/local/include/ImageMagick PCFLAGS = DEFS = -DHAVE_CONFIG_H LDFLAGS = -L/usr/lib MAGICK_LDFLAGS = -L/usr/local/lib -L/usr/lib LIBS = -lMagickCore -lz -lm -lpthread CXX = g++ CXXFLAGS = -g -O2 -Wall -W -pthread

All suggestions for ways in which to make Image::Magick see my image libraries would really great (JPEG would do for now, but PNG, TIFF e.t.c would be awesome long term...!)

-=( Graq )=-

Replies are listed 'Best First'.
Re: [OT?] Installing (configuring) Image::Magick
by jbert (Priest) on Aug 15, 2008 at 12:47 UTC
    As well as the runtime libraries, you'll need header files to build against the libs. Look for a 'dev' or 'development' version of the package which contains your jpeg libs.

    On debian/ubuntu it's called "libjpeg62-dev", if that helps.

    But as someone else says, maybe just install image magic from your OS package, at least as a first step.

    Good luck.

      I agree with looking for 'dev' packages. That's why rpm's suck, they break up package installations. I think "install your dev package" is the number 1 answer for problems on rpm based systems. Slackware rules!!!!! :-)

      I'm not really a human, but I play one on earth Remember How Lucky You Are
      I fixed a similar problem by doing a "yum install jpeglib-devel" And runnig the ./config --with-jpeg=yes again.... Good luck
Re: [OT?] Installing (configuring) Image::Magick
by jettero (Monsignor) on Aug 15, 2008 at 10:45 UTC
    Normally I'm a cpan purist, but for Image::Magick, I tend to use my OS installer. If I recall correctly, the Image::Magick perl library and the libmagick have to match exactly and the libmagick installer tries to install it (correctly) for you. I might be thinking of something else. But even if I am, I still try to use my OS perl module installer so everything works without all the effort.

    What platform are we talking about here? I'm talking about ubuntu/gentoo/etc...

    UPDATE: I imagine redhat has a package for both libmajick and for Image::Magick. I'd start there.

    -Paul

      The machine is running RedHat FC4.

      -=( Graq )=-

Re: [OT?] Installing (configuring) Image::Magick
by eosbuddy (Scribe) on Aug 15, 2008 at 11:54 UTC
    Usually, when I see these kind of errors, I try linking the lib files (in this case the /usr/lib/libjpeg* to /usr/local/lib and perhaps also /lib. I've administered RedHat based CentOS systems where moveable types have created havoc - however, I don't expect this to be the problem in your case. My two cents ;-)

      How do you mean 'linking'?

      /etc/ld.so.conf already contains /usr/local/lib

      If you mean the ln cmd, then that doesn't help either. Unless I need to put them somewhere special for I::Magick to see them?

      -=( Graq )=-

        I meant physically symbolically linking the libjpeg.so.62 and the rest of the files in /usr/lib to /usr/local/lib and /lib as well.
Re: [OT?] Installing (configuring) Image::Magick
by broomduster (Priest) on Aug 15, 2008 at 13:29 UTC
    Try looking in config.log to see what it tells you about where it thinks the jpeg libs and headers are (as noted by jbert, you need both to satisfy the configuration checks). And while you're in there, you could check on the other image libs/headers as well. ;)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-04-26 02:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found