Image::Magick can′t load! 
Author Message
 Image::Magick can′t load!

Hi

If I run my script with Image::Magick Perl print the following message

$ perl my.pl
Can't load
'/usr/lib/perl5/site_perl/5.005/i586-linux/auto/Image/Magick/Magick.so'
for module Image::Magick:
/usr/lib/perl5/site_perl/5.005/i586-linux/auto/Image/Magick/Magick.so:
undefined symbol: XError at
/usr/lib/perl5/5.00502/i586-linux/DynaLoader.pm line 168.

at ./my.pl line 2
BEGIN failed--compilation aborted at ./my.pl line 2.

Perl path:

/usr/lib/perl5/site_perl/5.005/i586-linux/auto/Image/Magick
/usr/lib/perl5/site_perl/5.005/i586-linux/auto/Image/Magick/Magick.bs
/usr/lib/perl5/site_perl/5.005/i586-linux/auto/Image/Magick/Magick.so
/usr/lib/perl5/site_perl/5.005/i586-linux/Image/Magick.pm

my.pl :

#!/usr/bin/perl
use Image::Magick;
use strict;

my ($image,$status);

$image = Image::Magick->new;

$status = $image->Read('images/dog*.gif');
warn "$status" if $status;
$image->Transparent('#FFFFFF');
$image->Zoom('50%');
$cube = Image::Magick->new;
$status = $cube->Read('NETSCAPE:');
warn "$status" if $status;
$image->Map($cube);
$status = $image->Set(loop=>0,dispose=>2);
warn "$status" if $status;

undef $image;

I dont now what that is. The lib is at the right place. Wy ?

Frank



Fri, 28 Dec 2001 03:00:00 GMT  
 Image::Magick can′t load!
Frank,

Have you installed ImageMagick, the *C* program not the Perl interface,
*before* trying to use the Perl Image:Magick module?? If not, then it would
only work with real Magic!

Get it at:
http://www.wizards.dupont.com/cristy/ImageMagick.html

Alan Pogrebinschi


Hi

If I run my script with Image::Magick Perl print the following message

$ perl my.pl
Can't load
'/usr/lib/perl5/site_perl/5.005/i586-linux/auto/Image/Magick/Magick.so'
for module Image::Magick:
/usr/lib/perl5/site_perl/5.005/i586-linux/auto/Image/Magick/Magick.so:
undefined symbol: XError at
/usr/lib/perl5/5.00502/i586-linux/DynaLoader.pm line 168.



Fri, 28 Dec 2001 03:00:00 GMT  
 Image::Magick can′t load!
Thank you for help,

but I have ImageMagick install before I try intall PerlMagick.
I use a distribution "SuSE 6.0". There are both ImageMagick and
PerlMagick as rpm.
The version are ImageMagick-4.1.6 and PerlMagick-4.20-14 .
I want compile the new version of both.
ImageMagick-4.2.8 and PerlMagick-4.28 but I cant install that.

ImageMagick-4.2.8 :

./configure --with-perl=yes --enable-lzw=yes

Option            Configure option        Configured value
----------------------------------------------------------
Shared libraries  --enable-shared=no            no
Static libraries  --enable-static=yes           yes
GNU ld            --with-gnu-ld=no              yes
Ghostscript       None                          no
LZW support       --enable-lzw=yes              yes
16 bit pixels     --enable-16bit-pixel=no       no
SFIO              --enable-sfio=no              no
SOCKS             --enable-socks=no             no
PERL              --with-perl=yes               /usr/bin/perl
BZLIB             --with-bzlib=yes              yes
DPS               --with-dps=yes                no
FlashPIX          --with-fpx=yes                no
HDF               --with-hdf=yes                no
JBIG              --with-jbig=yes               no
JPEG              --with-jpeg=yes               yes
PNG               --with-png=yes                no (failed tests)
TIFF              --with-tiff=yes               yes
TrueType (TTF)    --with-ttf=yes                no
TTF Path          --with-ttf-fontpath=          ""
ZLIB              --with-zlib=yes               no (failed tests)
X11               --with-x=yes                  yes

X11 Configuration:
  X_CFLAGS     = -I/usr/X11R6/include
  X_PRE_LIBS   = -lSM -lICE
  X_LIBS       = -L/usr/X11R6/lib
  X_EXTRA_LIBS =

Final Compilation Flags:
  CC       = gcc
  CFLAGS   = -g -O2
  CPPFLAGS = -I/usr/local/include -I/usr/X11R6/include
  LDFLAGS  = -L/usr/local/lib -L/usr/X11R6/lib
  LIBS     = -ltiff -ljpeg -lXext -lXt -lX11 -lbz2 -lm -lpt

That ok ?

But when I run make make stop with the message:

make

/bin/sh ./libtool --mode=link gcc  -g -O2 -L/usr/local/lib
-L/usr/X11R6/lib -o combine  combine.o magick/libMagick.la  -ltiff
-ljpeg -lXext -lXt -lX11 -lbz2 -lm -lpt
mkdir .libs
gcc -g -O2 -L/usr/local/lib -L/usr/X11R6/lib -o combine combine.o
magick/.libs/libMagick.a -ltiff -ljpeg -lXext -lXt -lX11 -lbz2 -lm -lpt
-ltiff -ljpeg -lXext -lXt -lX11 -lbz2 -lm -lpt
/usr/i486-linux/bin/ld: cannot open -lpt: No such file or directory
make[1]: *** [combine] Error 1
make[1]: Leaving directory `/root/tar-gz/perl/ImageMagick-4.2.8'
make: *** [all-recursive] Error 1

What is pt or libpt?

PerlMagik has problem too. I have the ImageMagick install from SuSE
(ImageMagick-4.1.6) and it work but PerlMagick dont install on my
system.

perl Makefile.PL
Note (probably harmless): No library found for -lMagick
Note (probably harmless): No library found for -ldpstk
Note (probably harmless): No library found for -ldps
Note (probably harmless): No library found for -lXext
Note (probably harmless): No library found for -lXt
Note (probably harmless): No library found for -lX11
Note (probably harmless): No library found for -lsocket
Writing Makefile for Image::Magick  

and make abort. That is ok but the libMagick lib is install.

 ldconfig -p |grep libMagick
        libMagick.so.4 (libc6) => /usr/X11R6/lib/libMagick.so.4
        libMagick.so (libc6) => /usr/X11R6/lib/libMagick.so

So I dont now what I can do ???????

At the moment i have install the SuSE rpm and the install is ok but
dont work.

$ perl my.pl
Can't load
'/usr/lib/perl5/site_perl/5.005/i586-linux/auto/Image/Magick/Magick.so'
for module Image::Magick:
/usr/lib/perl5/site_perl/5.005/i586-linux/auto/Image/Magick/Magick.so:
undefined symbol: XError at
/usr/lib/perl5/5.00502/i586-linux/DynaLoader.pm line 168.

I need Help !!!!!!!

Thank you for help!

Bye

Frank



Fri, 28 Dec 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Image Magick finding image size without loading image

2. Can't load Magick.so for module Image::Magick

3. Need help with Perl::Magick (Image::Magick)

4. Converting images without Image::Magick

5. Image::Magick: find the last image read

6. Merging and splitting of images with Image::Magick

7. convert jpg-images to tiff format with image-magick on winnt

8. Image Magick and returning images to a web page

9. AS Perl 629 Image::Magick makes Perl crash when outputting image to file

10. Image::Magick making images from layers

11. Image::Magick: find the last image read

12. ANNOUNCE: Tutorial # 32: Showcasing Image::Magick (part 2): xml-2-image.pl

 

 
Powered by phpBB® Forum Software