can not "make" for PerlMagick
Posted: 2012-03-05T15:16:42-07:00
I have successfully installed ImageMagick on my ubuntu machine. However, when I tried to install its perl module, I got some problem:
$perl Makefile.PL
Warning: -L../magick/.libs changed to -L/Downloads/ImageMagick-6.7.5-10/PerlMagick/../magick/.libs
Writing Makefile for Image::Magick
$make
Skip blib/lib/Image/Magick.pm (unchanged)
cc -c -I../ -I.. -I/usr/include/freetype2 -I/usr/include/libxml2 -I"/usr/include/ImageMagick" -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fopenmp -g -O2 -Wall -pthread -O2 -g -DVERSION=\"6.75\" -DXS_VERSION=\"6.75\" -fPIC "-I/usr/lib/perl/5.10/CORE" -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES=1 -DHAVE_CONFIG_H Magick.c
Running Mkbootstrap for Image::Magick ()
chmod 644 Magick.bs
rm -f blib/arch/auto/Image/Magick/Magick.so
LD_RUN_PATH="/Downloads/ImageMagick-6.7.5-10/PerlMagick/../magick/.libs" cc -L../magick/.libs -lMagickCore -shared -O2 -g -L/usr/local/lib -fstack-protector -L/usr/lib Magick.o -o blib/arch/auto/Image/Magick/Magick.so \
-L/Downloads/ImageMagick-6.7.5-10/PerlMagick/../magick/.libs -lMagickCore -lperl -lm \
/usr/bin/ld: cannot find -lperl
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/Image/Magick/Magick.so] Error 1
Could someone tell me how to fix it? Thank you.
Xiaokuan
$perl Makefile.PL
Warning: -L../magick/.libs changed to -L/Downloads/ImageMagick-6.7.5-10/PerlMagick/../magick/.libs
Writing Makefile for Image::Magick
$make
Skip blib/lib/Image/Magick.pm (unchanged)
cc -c -I../ -I.. -I/usr/include/freetype2 -I/usr/include/libxml2 -I"/usr/include/ImageMagick" -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fopenmp -g -O2 -Wall -pthread -O2 -g -DVERSION=\"6.75\" -DXS_VERSION=\"6.75\" -fPIC "-I/usr/lib/perl/5.10/CORE" -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES=1 -DHAVE_CONFIG_H Magick.c
Running Mkbootstrap for Image::Magick ()
chmod 644 Magick.bs
rm -f blib/arch/auto/Image/Magick/Magick.so
LD_RUN_PATH="/Downloads/ImageMagick-6.7.5-10/PerlMagick/../magick/.libs" cc -L../magick/.libs -lMagickCore -shared -O2 -g -L/usr/local/lib -fstack-protector -L/usr/lib Magick.o -o blib/arch/auto/Image/Magick/Magick.so \
-L/Downloads/ImageMagick-6.7.5-10/PerlMagick/../magick/.libs -lMagickCore -lperl -lm \
/usr/bin/ld: cannot find -lperl
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/Image/Magick/Magick.so] Error 1
Could someone tell me how to fix it? Thank you.
Xiaokuan