Click here to get back home

Problems Installing Image::Magick

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Problems Installing Image::Magick Eric 09-26-2006
Posted by Eric on September 26, 2006, 3:35 pm
Please log in for more thread options


I am pretty sure my problem is that I am not following the instructions
in the README properly where it states:

======
Next, edit Makefile.PL and change LIBS and INC to include the
appropriate
path information to the required libMagick library. You will also need
library search paths (-L) to JPEG, PNG, TIFF, etc. libraries if they
were
included with your installed version of ImageMagick
------

unfortunately, not really needing to have any knowledge of Perl beyond
the need to install a few modules (needed by Bugzilla), getting
Image::Magick installed is harder then it probably should be. Any help
would be appreciated.

I am using DarwinPorts (MacPorts) under MacOSX 10.4.x to install the
libraries for ImageMagick, lcms, tiff, freetype, jpeg & fontconfig.

I am not sure what to do about Xext, SM, ICE, X11, Xt...although, I do
have Apple's X11 app installed and I am assuming that -lX11 is
referring to a library found over there.

The DarwinPorts libraries should be found in /opt/local/lib and the
includes should be found in /opt/local/include

In my first (failed) attempt, I changed the following lines in
Makefile.PL:

# Header search specfication and preprocessor flags
'INC' => '-I../ -I.. -I/opt/local/include
-I/usr/include/freetype2 -I/usr/include/libxml2',

# Linker flags for building an executable
'LDFLAGS' => "-L/opt/local/lib -L../magick/.libs -L/usr/lib
$Config",

# Linker flags for building a dynamically loadable module
'LDDLFLAGS' => "-L/opt/local/lib -L../magick/.libs -L/usr/lib
$Config",



The current output for Makefile.PL is:

~/.cpan/build/PerlMagick $perl Makefile.PL
Note (probably harmless): No library found for -lMagick
Note (probably harmless): No library found for -llcms
Note (probably harmless): No library found for -ltiff
Note (probably harmless): No library found for -lfreetype
Note (probably harmless): No library found for -ljpeg
Note (probably harmless): No library found for -lfontconfig
Note (probably harmless): No library found for -lXext
Note (probably harmless): No library found for -lSM
Note (probably harmless): No library found for -lICE
Note (probably harmless): No library found for -lX11
Note (probably harmless): No library found for -lXt


Posted by Eric on October 17, 2006, 11:20 am
Please log in for more thread options


The solution I found was to go to:

http://www.imagemagick.org/script/install-source.php

and install ImageMagick from source. This built and installed
PerlMagick as well.

If I had wanted to, I believe I could have gone back into CPAN and
modified the Makefile.PL file ( cpan> look Image::Magick) based on the
Makefile.PL that the ./configure step generated.


Eric wrote:
> I am pretty sure my problem is that I am not following the instructions
> in the README properly where it states:
>
> ======
> Next, edit Makefile.PL and change LIBS and INC to include the
> appropriate
> path information to the required libMagick library. You will also need
> library search paths (-L) to JPEG, PNG, TIFF, etc. libraries if they
> were
> included with your installed version of ImageMagick
> ------
>
> unfortunately, not really needing to have any knowledge of Perl beyond
> the need to install a few modules (needed by Bugzilla), getting
> Image::Magick installed is harder then it probably should be. Any help
> would be appreciated.
>
> I am using DarwinPorts (MacPorts) under MacOSX 10.4.x to install the
> libraries for ImageMagick, lcms, tiff, freetype, jpeg & fontconfig.
>
> I am not sure what to do about Xext, SM, ICE, X11, Xt...although, I do
> have Apple's X11 app installed and I am assuming that -lX11 is
> referring to a library found over there.
>
> The DarwinPorts libraries should be found in /opt/local/lib and the
> includes should be found in /opt/local/include
>
> In my first (failed) attempt, I changed the following lines in
> Makefile.PL:
>
> # Header search specfication and preprocessor flags
> 'INC' => '-I../ -I.. -I/opt/local/include
> -I/usr/include/freetype2 -I/usr/include/libxml2',
>
> # Linker flags for building an executable
> 'LDFLAGS' => "-L/opt/local/lib -L../magick/.libs -L/usr/lib
> $Config",
>
> # Linker flags for building a dynamically loadable module
> 'LDDLFLAGS' => "-L/opt/local/lib -L../magick/.libs -L/usr/lib
> $Config",
>
>
>
> The current output for Makefile.PL is:
>
> ~/.cpan/build/PerlMagick $perl Makefile.PL
> Note (probably harmless): No library found for -lMagick
> Note (probably harmless): No library found for -llcms
> Note (probably harmless): No library found for -ltiff
> Note (probably harmless): No library found for -lfreetype
> Note (probably harmless): No library found for -ljpeg
> Note (probably harmless): No library found for -lfontconfig
> Note (probably harmless): No library found for -lXext
> Note (probably harmless): No library found for -lSM
> Note (probably harmless): No library found for -lICE
> Note (probably harmless): No library found for -lX11
> Note (probably harmless): No library found for -lXt


Similar ThreadsPosted
image magick through apt-get November 27, 2004, 5:48 pm
Image magick palette July 30, 2004, 9:16 pm
Image::Magick newbie September 5, 2005, 10:19 pm
Image Magick code help November 29, 2004, 12:14 pm
Image Magick code help December 3, 2004, 6:43 pm
Errror in mod Image::magick or something else? October 29, 2005, 4:53 am
ANNOUNCE: Image::Magick::Tiler V 1.00 February 22, 2005, 11:35 am
ANNOUNCE: Image::Magick::Chart V 1.01 June 13, 2005, 3:36 am
Image::Magick scalar value to print use CGI April 13, 2006, 10:09 pm
Reduce colors with Image::Magick July 6, 2007, 7:06 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap