PerlMagick

Christopher Jones c.jones at ucl.ac.uk
Thu Oct 28 13:27:52 BST 2010


On 28 Oct 2010, at 12:54, Dave Hodgkinson wrote:

> On 28 Oct 2010, at 12:03, Christopher Jones wrote:
> 
>> I've tried installing PerlMagick on a MacBook (v10.6.4), but the make dies. I've posted a message on the ImageMagick forum, but alas no response.....
>> 
>> A lot of Googling only turns up the usual problems of not having installed ImageMagick properly in the first place, but that doesn't seem to be the problem here (at least as far as I can tell).
>> 
>> Has anyone on London.pm had success installing PerlMagick on a Mac?
> 
> Not helpful.

I was trying to be helpful by not going into too much detail.... saving time if no one else has bothered trying to install it on a Mac! 


> What error are you getting?

    .....after lots of compiler warnings....
    lipo: can't open input file: /var/folders/EN/ENoEDFrH2P8yFk+BYmhN5++++TI/-Tmp-//ccqHPWqs.out (No such file or directory)
    make: *** [Magick.o] Error 1

I know nothing of makefiles, so can't even begin to work out what the missing directory should be, or why its missing. I modified the following lines of Makefile.PL to point to various libraries as suggested in the ReadMe, but presumably messed up somewhere;

    my $INC_magick = '-I../ -I.. -I/usr/X11/include/cairo -I/usr/X11/include/pixman-1 -I/usr/X11/include/freetype2 -I/usr/X11/include/libpng12 -I/usr/X11/include/freetype2 -I/usr/include/libxml2 -I"' . $Config{'usrinc'} . '/ImageMagick"';
    my $LIBS_magick = '-L/usr/local/lib -lMagickCore -L/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE -lm';
    my $LDFLAGS_magick   = "-L/usr/local/lib -lMagickCore $Config{'ldflags'} ";
    my $LDDLFLAGS_magick = "-L/usr/local/lib -lMagickCore $Config{'lddlflags'} ";

Maybe the mistake is obvious to the trained eye?


Chris





More information about the london.pm mailing list