in reply to Installing PerlMagick

Yeah tried just compiling and I got a lot of error messages which looked like this:

Magick.c: In function `XS_Image__Magick_Animate': Magick.c:1978: warning: unused variable `ref' Magick.c:1973: warning: unused variable `ix' Magick.c: In function `XS_Image__Magick_Append': Magick.c:2052: warning: unused variable `ref' Magick.c:2047: warning: unused variable `ix' Magick.c: In function `XS_Image__Magick_Average': Magick.c:2183: warning: unused variable `ref' Magick.c:2178: warning: unused variable `ix'

Then the last one looked like this

gcc -L/usr/local/lib -shared -L/usr/local/lib Magick.o -o blib/arch/ +auto/Image/Magick/Magick.so -L/usr/local/lib -L/u sr/X11R6/lib -lfreetype -lz -L/usr/lib -ltiff -lfreetype -ljpeg -lpng +-ldpstk -ldps -lXext -lXt -lSM -lICE -lX11 -lbz2 -l xml2 -lz -lpthread -lm -lpthread /usr/bin/ld: cannot find -lbz2 collect2: ld returned 1 exit status make: *** [blib/arch/auto/Image/Magick/Magick.so] Error 1

So I think it failed at the end because it couldnt find a library file... do you think I need to change where is says.

-L/usr/lib -ltiff -lfreetype -ljpeg -lpng -ldpstk -ldps -lXext -lXt -l +SM -lICE -lX11 -lbz2 -l xml2 -lz -lpthread -lm -lpthread

To be something more like

-L/home/tdf/ImageMagick/lib -ltiff -lfreetype -ljpeg -lpng -ldpstk -ld +ps -lXext -lXt -lSM -lICE -lX11 -lbz2 -l xml2 -lz -lpthread -lm -lpthread

?

Learning without thought is labor lost; thought without learning is perilous. - Confucius
WebChalkboard.com | For the love of art...

Replies are listed 'Best First'.
Re^2: Installing PerlMagick
by samizdat (Vicar) on Apr 06, 2005 at 17:18 UTC
    +-ldpstk -ldps -lXext -lXt -lSM -lICE -lX11 -lbz2 -l xml2 -lz -lpthread -lm -lpthread /usr/bin/ld: cannot find -lbz2 collect2: ld returned 1 exit status make: *** [blib/arch/auto/Image/Magick/Magick.so] Error 1
    It looks like it's trying to find a library to unpack bz2 compressed archives. Look for something like libbz2.so somewhere in your library areas. I know in FreeBSD5 they use BZ2 for packages et al, and they used to use normal .tgz tarballs. What is your OS and version?