Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?


by dusk (Friar)
on Mar 12, 2001 at 06:55 UTC ( #63721=perlquestion: print w/replies, xml ) Need Help??

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

Fellow monks,
I am having problems installing Image::Magick. After checking if the kit is complete it says:

Note (probably harmless): No library found for -lfpx

But, later on I get:

Magick.xs:76: magick/api.h: No such file or directory make: *** [Magick.o] Error 1
Any suggestions/solutions will be helpful :)

Replies are listed 'Best First'.
Re: Image::Magick
by rpc (Monk) on Mar 12, 2001 at 08:25 UTC
    I think the two are unrelated. The actual error is generated from not being able to find the Image Magick header files. If Image Magick's make install doesn't copy them to /usr/include, then you should manually create a /usr/include/magick, and mv all of the header files from the Image Magick source tree. This is typically what imagemagick 'development' packages are.

    If you run debian or redhat, it may be easier to install the 'imagemagick library development' package.

Re: Image::Magick
by jlawrenc (Scribe) on Mar 12, 2001 at 20:16 UTC
    1 - The reference to -lfpx is for FlashPix library - whatever that is!

    2 - You might have installed ImageMagick into a different prefix than the default (/usr/local ?) In which case, when you run "perl Makefile.PL" you have to supply a bit more info now.

    Call it as: perl Makefile.PL "INC=-I/path/to/ImageMagick/include" "LIB=-L/path/to/imagemagic/lib"

    You can ignore the -lfpx as it should be harmless. You may need to rebuild ImageMagick with no support for FPX? Watch your "gcc" statements as they go across the screen. Does it look like there is enough path info for LIBs and INCs to get the job done?

    Now you might need more stuff in the Makefile.PL command. I will be testing it out myself later on today. But in the mean time check that out if you have a sec.


      I have spent a bit of time on this problem and am more perplexed now than I was before starting. Ooops.

      First I'll offer how I build MY version of ImageMagick at the momement. I may change this after further experimentation but this is at least more than what I am after:

      PREFIX=/opt export CCFLAGS="-I$PREFIX/include/freetype2" export LDFLAGS="-L$PREFIX/lib" ./configure --prefix=$PREFIX \ --enable-shared \ --disable-static \ --with-modules \ --with-largefiles \ --with-magick-plus-plus \ --with-threads \ --enable-lzw=yes \ --without-fpx \ --with-perl=$PREFIX/bin/perl \ >logs/ImageMagick-config
      After running all that I get a good build of the ImageMagick libraries and PerlMagick. Yaaah.

      However, CPAN'ing the more recent version of PerlMagick leads me into the confusion. I am getting complaints about all sorts of unknown struct members and types during make.

      Magick.xs: In function `SetAttribute':
      Magick.xs:1392: structure has no member named `pen'
      Magick.xs: In function `XS_Image__Magick_Mogrify':
      Magick.xs:3693: `AffineMatrix' undeclared (first use in this function)
      Magick.xs:3693: (Each undeclared identifier is reported only once
      Magick.xs:3693: for each function it appears in.)
      Magick.xs:3693: parse error before `affine'
      Magick.xs:4351: structure has no member named `text'
      Magick.xs:4363: structure has no member named `geometry'
      ...yadda yadda
      Unfortunately I don't have heaps of time to figure out what has gone awry but when I do, you'll hear from me. :)


Re: Image::Magick
by andye (Curate) on Mar 12, 2001 at 17:35 UTC
    Wotcha dusk, the following is stuff you probably know about already, but hey, it's good to start with the obvious - I say this as someone who once had to call a mechanic due to what turned out to be no petrol - hey, the needle was stuck - anyway,...

    Before you can install the Perl library, you need to have the main ImageMagick application itself - you can get it from one of these sites, as a precompiled binary.

    If you already knew that, and your problems are in installing the binary, then sorry I haven't been able to be more helpful.


Re: Image::Magick
by Anonymous Monk on Mar 13, 2001 at 11:59 UTC
    you must first install perl magick, then image magick. there are links on image magicks site to d/l perl magick
      I am using FC4 with AMD64, and I also am having a whole bunch of Magick.xs errors with installing Perl::Magick. When I go to CPAN to download Image::Magick, it just gives me the Perl::Magick module. How can I get Image::Magick module, or does it even exist?
        Hello: In this page
        There is a lot of information about how to install image magick

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2023-03-22 02:46 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (60 votes). Check out past polls.