Can someone help me sort out a problem installing PerlMagick? I'm not using fink for PerlMagick, though I did use it for ImageMagick and the problem seems to have to do with directory paths. Here are the details:

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 ImageMagick 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? (Yeah, I'm new to Unix software installation so I'm sure it's something obvious.)


Thanks a lot,

Dan



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Fink-beginners mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to