can not "make" for PerlMagick

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
weixiaokuan
Posts: 1
Joined: 2012-03-05T15:12:40-07:00
Authentication code: 8675308

can not "make" for PerlMagick

Post 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
rickan
Posts: 2
Joined: 2013-05-09T18:26:51-07:00
Authentication code: 6789

Re: can not "make" for PerlMagick

Post 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.
rickan
Posts: 2
Joined: 2013-05-09T18:26:51-07:00
Authentication code: 6789

Re: can not "make" for PerlMagick

Post 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!
broucaries
Posts: 467
Joined: 2008-12-21T11:51:10-07:00

Re: can not "make" for PerlMagick

Post 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 ?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: can not "make" for PerlMagick

Post by magick »

Look for updated PerlMagick installatiojn instructions by sometime tomorrow. Thanks.
Post Reply