maychan
11-15-2004, 11:52 PM
WestHost recently installed PerlMagick on my WestHost account. I am testing it using a very simple script:
--------------------------------
#!/usr/bin/perl
use Image::Magick;
$image=Image::Magick->new();
my $infile = shift;
my $outfile = shift;
$x=$image->ReadImage($infile);
warn "$x" if "$x";
$image->Thumbnail('250');
warn "$x" if "$x";
$image->Write($outfile);
--------------------------------
I SSH into my account and run the perl script. On the ReadImage() line, it gives me this error:
perl: relocation error: /usr/local/perl/lib/site_perl/5.6.0/i686-linux/auto/Image/Magick/Magick.so: undefined symbol: perl_get_sv
What do you think could be the problem?
Thanks,
May Chan
--------------------------------
#!/usr/bin/perl
use Image::Magick;
$image=Image::Magick->new();
my $infile = shift;
my $outfile = shift;
$x=$image->ReadImage($infile);
warn "$x" if "$x";
$image->Thumbnail('250');
warn "$x" if "$x";
$image->Write($outfile);
--------------------------------
I SSH into my account and run the perl script. On the ReadImage() line, it gives me this error:
perl: relocation error: /usr/local/perl/lib/site_perl/5.6.0/i686-linux/auto/Image/Magick/Magick.so: undefined symbol: perl_get_sv
What do you think could be the problem?
Thanks,
May Chan