Page 1 of 1

Problems with PerlMagick

Posted: 2007-06-06T12:08:21-07:00
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.

Re: Problems with PerlMagick

Posted: 2007-06-08T08:20:21-07:00
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.

Re: Problems with PerlMagick

Posted: 2007-06-08T09:27:22-07:00
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

Re: Problems with PerlMagick

Posted: 2007-06-08T12:56:13-07:00
by Rodrigo_BR
I tried this many times, with the same errors.

Re: Problems with PerlMagick

Posted: 2007-06-08T14:51:51-07:00
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.

Re: Problems with PerlMagick

Posted: 2007-06-09T02:04:58-07:00
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?

Re: Problems with PerlMagick

Posted: 2007-06-09T20:04:11-07:00
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

Re: Problems with PerlMagick

Posted: 2007-06-12T23:35:48-07:00
by Rodrigo_BR
UP.