|
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
|