Problems with PerlMagick

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
Rodrigo_BR

Problems with PerlMagick

Post by Rodrigo_BR »

Hello,

I have a server with CentOS system and cPanel/WHM.

The ImageMagick was installed using this:

mkdir /home/cpim
cd /home/cpim
/scripts/installrpm ImageMagick
/scripts/installrpm ImageMagick-devel
wget http://layer1.cpanel.net/magick.tar.gz
tar zxvf magick.tar.gz
cd magick
sh install


And installing PerlMagick after, but the scripts are not working.

The error in Apache:
Can't load '/usr/lib/perl5/site_perl/5.8.7/i686-linux/auto/Image/Magick/Magick.so' for module Image::Magick: libMagick.so.10: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.7/i686-linux/DynaLoader.pm line 230.
at testalogo.pl line 8
Compilation failed in require at testalogo.pl line 8.
BEGIN failed--compilation aborted at testalogo.pl line 8.
Thank you.
Rodrigo_BR

Re: Problems with PerlMagick

Post by Rodrigo_BR »

For more complete information, I receive this when trying to install PerlMagick:
agick.xs: In function `SetAttribute':
Magick.xs:1330: structure has no member named `gravity'
Magick.xs:1475: warning: assignment makes pointer from integer without a cast
Magick.xs: In function `XS_Image__Magick_Get':
Magick.xs:3198: structure has no member named `gravity'
Magick.xs: In function `XS_Image__Magick_Mogrify':

Magick.xs:4704: structure has no member named `family'
Magick.xs:4707: structure has no member named `style'
Anyone can help me?!?

Thank you.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Problems with PerlMagick

Post by magick »

We downloaded magick.tar.gz and built it without complaint. Did you try
  • cd ImageMagick-5.5.1
    cd PerlMagick
    perl Makefile.PL
    make
    make install
Rodrigo_BR

Re: Problems with PerlMagick

Post by Rodrigo_BR »

I tried this many times, with the same errors.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Problems with PerlMagick

Post by magick »

Check your system you may have an older version of ImageMagick installed and the compiler is picking up the wrong ImageMagick API headers.
Rodrigo_BR

Re: Problems with PerlMagick

Post by Rodrigo_BR »

I uninstalled old IM and tried install new version, same problem. :(

I don't understand...

What version of .src.rpm I should download?
Rodrigo_BR

Re: Problems with PerlMagick

Post by Rodrigo_BR »

My server:

CentOS 4.5 i686
cPanel 10.9.0-CURRENT- 10724
Apache 1.3.37
PERL 5.8.7
Kernel 2.6.9-34.0.2.ELsmp
Rodrigo_BR

Re: Problems with PerlMagick

Post by Rodrigo_BR »

UP.
Post Reply