Page 1 of 1

can not "make" for PerlMagick

Posted: 2012-03-05T15:16:42-07:00
by weixiaokuan
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

Re: can not "make" for PerlMagick

Posted: 2013-05-09T18:33:26-07:00
by rickan
I am having this exact problem also.

Ubuntu 12.20

Perl 5.14.2

I'm VERY frustrated. The instructions at http://www.imagemagick.org/script/perl-magick.php are not nearly sufficient since the missing Q16.pm error (which I've finally learned how to avoid) also occurs when following them.

Re: can not "make" for PerlMagick

Posted: 2013-05-09T18:53:53-07:00
by rickan
Why is -lperl in Makefile.PL? Shouldn't something like that be coming from Config.pm?

Thinking like this I it occurred to me to try removing -lperl from Makefile.PL in PerlMagick and in PerlMagick/quantum.
The result was a successful build and all tests passed!

Re: can not "make" for PerlMagick

Posted: 2013-05-10T04:12:53-07:00
by broucaries
Yes, intrcution are not up to date.

You could not build perl before doing a configure step.

Magick could we imporve the doc ?

Re: can not "make" for PerlMagick

Posted: 2013-05-10T05:18:16-07:00
by magick
Look for updated PerlMagick installatiojn instructions by sometime tomorrow. Thanks.