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
can not "make" for PerlMagick
-
- Posts: 1
- Joined: 2012-03-05T15:12:40-07:00
- Authentication code: 8675308
Re: can not "make" for PerlMagick
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.
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
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!
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!
-
- Posts: 467
- Joined: 2008-12-21T11:51:10-07:00
Re: can not "make" for PerlMagick
Yes, intrcution are not up to date.
You could not build perl before doing a configure step.
Magick could we imporve the doc ?
You could not build perl before doing a configure step.
Magick could we imporve the doc ?
Re: can not "make" for PerlMagick
Look for updated PerlMagick installatiojn instructions by sometime tomorrow. Thanks.