I'm having trouble installing PerlMagick--hope someone can help. Details are below. I should confess that I'm new to installing unix software so I'm probably overlooking something completely obvious.

Running OSX 10.3.2.
Perl 5.8.3 is installed in /usr/local, overriding Apple's default Perl.
ImageMagick 5.5.6 is installed (from source) via fink in /sw, and works from the command line.
Downloaded ImageMagick 5.5.6 manually from their web site, just to get PerlMagick, then edited Makefile.PL to add the /sw directories:


'INC' => '-I../ -I.. -I/sw/include/freetype2 -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I/usr/X11R6/include -I/sw/include/libxml2 -I/sw/include',

'LIBS' => ['-L/usr/X11R6/lib -L/sw/lib -lMagick -llcms -ltiff -lfreetype -ljasper -ljpeg -lpng -lXext -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lpthread -lm -ldpstk'],

Then tried to build PerlMagick as follows:


WS0010062749:~/downloads/ImageMagick-5.5.6/PerlMagick dschroeder$ perl Makefile.PL
Note (probably harmless): No library found for -ljasper
Writing Makefile for Image::Magick
WS0010062749:~/downloads/ImageMagick-5.5.6/PerlMagick dschroeder$ make
cc -c -I../ -I.. -I/sw/include/freetype2 -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I/usr/X11R6/include -I/sw/include/libxml2 -I/sw/include -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -Os -DVERSION=\"5.56\" -DXS_VERSION=\"5.56\" "-I/usr/local/lib/perl5/5.8.3/darwin-2level/CORE" -DHAVE_CONFIG_H Magick.c
Running Mkbootstrap for Image::Magick ()
chmod 644 Magick.bs
rm -f blib/arch/auto/Image/Magick/Magick.bundle
LD_RUN_PATH="/sw/lib:/usr/X11R6/lib:/usr/lib" env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup Magick.o -o blib/arch/auto/Image/Magick/Magick.bundle -L/usr/X11R6/lib -L/sw/lib -lMagick -llcms -ltiff -lfreetype -ljpeg -lpng -lXext -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lpthread -lm -ldpstk
chmod 755 blib/arch/auto/Image/Magick/Magick.bundle
cp Magick.bs blib/arch/auto/Image/Magick/Magick.bs
chmod 644 blib/arch/auto/Image/Magick/Magick.bs
Manifying blib/man3/Image::Magick.3
/usr/local/bin/perl "-Iblib/arch" "-Iblib/lib" Makefile2.PL Makefile2
Writing Makefile for Image::Magick
/usr/local/bin/perl "-Iblib/arch" "-Iblib/lib" MakefileOld.PL MakefileOld
Note (probably harmless): No library found for -lMagick
Note (probably harmless): No library found for -llcms
Writing Makefile for Image::Magick
WS0010062749:~/downloads/ImageMagick-5.5.6/PerlMagick dschroeder$ sudo make install
Password:
cc -c -I../ -I.. -I/usr/include/freetype2 -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I/usr/X11R6/include -I/usr/include/libxml2 -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -Os -DVERSION=\"5.56\" -DXS_VERSION=\"5.56\" "-I/usr/local/lib/perl5/5.8.3/darwin-2level/CORE" -DHAVE_CONFIG_H Magick.c
In file included from Magick.xs:81:
../magick/api.h:15:36: magick/magick_config.h: No such file or directory
../magick/api.h:27:19: types.h: No such file or directory
make: *** [Magick.o] Error 1

Note the error messages at the end. So: What am I doing wrong?


Thanks a lot,

Dan


Reply via email to