LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Error installing Image::Magick via CPAN (https://www.linuxquestions.org/questions/linux-newbie-8/error-installing-image-magick-via-cpan-806316/)

linuxlover.chaitanya 05-06-2010 08:57 AM

Error installing Image::Magick via CPAN
 
1 Attachment(s)
Hello all,

There is this server that I have just put with Bugzilla. It needs Image::Magick module for rendering bmp or other image types to png to save some disk space and compress the images.
The best way to install it is using CPAN repos. And it gives whole lot of errors. I am attaching the file for errors.
But if try to install from cpan console it says Image::Magick is already the recent version.

Code:

cpan> install Image::Magick
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
  Database was generated on Thu, 06 May 2010 02:29:01 GMT
Image::Magick is up to date.

And this is the bugzilla error:

Code:

The new value for convert_uncompressed_images is invalid: Error requiring Image::Magick: 'Can't load '/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/Image/Magick/Magick.so' for module Image::Magick: libMagickCore.so.3: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm line 230. at (eval 134) line 3 Compilation failed in require at (eval 134) line 3. '.

PMP 05-06-2010 09:32 AM

http://www.linuxquestions.org/questi...l-make-604297/

linuxlover.chaitanya 05-07-2010 12:01 AM

That does not solve the issue. I already have the settings done in CPAN.pm and make has correct path. I have tried installing using yum as well.
And you are missing on this statement of mine:
Code:

cpan> install Image::Magick
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
  Database was generated on Thu, 06 May 2010 02:29:01 GMT
Image::Magick is up to date.

It says Image::Magick is installed and is up-to-date as well. But somehow bugzilla is not finding the modules.

linuxlover.chaitanya 05-07-2010 12:12 AM

These are the results for my yum installation for ImageMagick:

Code:

Package ImageMagick-6.2.8.0-4.el5_1.1.i386 already installed and latest version
Nothing to do

Code:

Package ImageMagick-perl-6.2.8.0-4.el5_1.1.i386 already installed and latest version
Nothing to do


PMP 05-07-2010 12:40 AM

Have you tried removing and re-installing it ?
What about giving a force update.

linuxlover.chaitanya 05-07-2010 02:41 AM

Yes tried reinstalling everything. Still the same error. Please do not ask to reinstall bugzilla. This is another error given by bugzilla:

Code:

Software error:

&Image::Magick::constant not defined. The required ImageMagick libraries are not installed or not installed properly.
END failed--call queue aborted.


knudfl 05-07-2010 01:46 PM

# yum install ImageMagick-perl bugzilla

bugzilla is in the EPEL repo ( and has 42 dependencies.)
https://fedoraproject.org/wiki/EPEL
https://fedoraproject.org/wiki/EPEL/FAQ#howtouse

I don't known how you used (or installed) bugzilla ? ?
May be show some command(s), you tried to use.
http://tldp.org/LDP/bugzilla/Bugzilla-Guide/how.html
https://landfill.bugzilla.org/bugzilla-tip/

linuxlover.chaitanya 05-07-2010 11:55 PM

I manually installed bugzilla as given in the documentation. Everything is fine. This Image::Magick is required for image compression. I have already installed ImageMagick ImageMagick-perl ImageMagick-devel. And you can see that CPAN does say that it is installed and up-to-date as well.

knudfl 05-08-2010 01:56 AM

For the sake of completeness, these are the bugzilla dependencies,
when yum installs it ......

mod_perl perl-AppConfig perl-BSD-Resource perl-Convert-ASN1
perl-Convert-BinHex perl-Email-Abstract perl-Email-Address
perl-Email-MIME perl-Email-MIME-Attachment-Stripper
perl-Email-MIME-ContentType perl-Email-MIME-Creator
perl-Email-MIME-Encodings perl-Email-MIME-Modifier
perl-Email-MessageID perl-Email-Reply perl-Email-Send
perl-Email-Simple perl-Email-Simple-Creator perl-File-HomeDir
perl-IO-Socket-SSL perl-IO-stringy perl-LDAP perl-MIME-Lite
perl-MIME-Types perl-MIME-tools perl-MailTools
perl-Module-Pluggable perl-Net-SSLeay perl-Pod-POM
perl-Return-Value perl-SOAP-Lite perl-TeX-Hyphen
perl-Template-Toolkit perl-Text-Autoformat perl-Text-Reform
perl-TimeDate perl-XML-NamespaceSupport perl-XML-Parser
perl-XML-SAX perl-XML-Twig perl-version
( Most of these are from the EPEL repo.)

When you tell, which actions you are taking for the error to
appear, there may be a solution. Are you doing a command to
compress images ? Which command ? Or is some GUI used ? → →
Which Menu or button ? ?
..

linuxlover.chaitanya 05-08-2010 03:45 AM

There is this option in bugzilla administration to compress the images attached to save the disk space. If I just enable it through the radio button and click Save, it gives all the errors I have pasted in the above posts.
I will try out the yum install for bugzilla on some other test machine and then let you know. But this will not solve my problem. The bugzilla is in use so it will not be possible to remove it or replace it immediately. Will see if just replacing the mysql database works for it.
The page is here:

Bugzilla > Administration > Parameters > Index > convert_uncompressed_images. This option can be enabled or disabled using a radio button. It makes the use of Image::Magick.

linuxlover.chaitanya 05-08-2010 04:28 AM

@knudfl

Added the EPEL repository and installed all the dependencies it would install with bugzilla but the problem still persists.

linuxlover.chaitanya 05-10-2010 03:53 AM

Done. I am going to mark it solved. Had to manually install the ImageMagick and PerlMagick.

Code:

wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz

cd imageMagick
./configure
make
make install

Code:

cd PerlMagick
perl Makefile.PL
make install

All was I needed to do. Working fine now.

@knudfl,

The bugzilla version in EPEL repos is old. Testopia would not work on 3.2 version. The one I am running is 3.4.5. So installing from yum would not completely solve my problem.


All times are GMT -5. The time now is 06:42 AM.