LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Tags used in this thread
Popular LQ Tags ,

Reply
 
Thread Tools
Old 10-22-2008, 08:17 AM   #1
cooljai
Member
 
Registered: May 2007
Location: /dev/random
Distribution: CentOS, Fedora, RHEL, SuSE
Posts: 57
Thanked: 0
Question How to fix ImageMagick issue in CentOS ?


[Log in to get rid of this advertisement]
Dear Members,

I'm trying to install ImageMagick for perl in CentOS 5 box. Here are some information:

First I tried installation using yum, which goes ok. I can verify:

Code:
# rpm -qa | grep ImageMagick
ImageMagick-6.2.8.0-3.el5.4
ImageMagick-perl-6.2.8.0-3.el5.4
But when testing it, its throwing errors:
Code:
# perl -e 'use Image::Magick; print $Image::Magick::VERSION."\n"'

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.1: 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 -e line 1
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
Then I tried manual installation of ImageMagick (ImageMagick-6.4.4, which includes module for perl also) and its compilation/installation goes okay but same error afterwards.

Some more input:

Code:
# ldd /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/Image/Magick/Magick.so
        linux-gate.so.1 =>  (0xbfffe000)
        libMagickCore.so.1 => not found
        libMagickWand.so.1 => not found
        libc.so.6 => /lib/libc.so.6 (0xb7d75000)
        /lib/ld-linux.so.2 (0x80000000)


# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
/usr/local/lib
/usr/lib
Any help will be appreciated.
cooljai is offline  
Tag This Post ,
Reply With Quote
Old 10-23-2008, 02:38 AM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 3,925
Thanked: 110
Not sure if this will help or not, but a lot of times you need the -devel version of a package:


ImageMagick-devel
lazlow is offline     Reply With Quote
Old 10-23-2008, 04:04 AM   #3
colucix
Guru
 
Registered: Sep 2003
Location: Bologna, Italia
Distribution: OpenSUSE 11.1 CentOS 5.4 VectorLinux 6.0
Posts: 5,134
Thanked: 464
It works well on my system, but I have a slightly different (updated) version:
Code:
$ rpm -qa | grep ImageMagick
ImageMagick-perl-6.2.8.0-4.el5_1.1
ImageMagick-6.2.8.0-4.el5_1.1
Which CentOS are you running on? Mine is
Code:
# lsb_release -d
Description:    CentOS release 5.2 (Final)
colucix is offline     Reply With Quote
Old 10-24-2008, 01:21 AM   #4
cooljai
Member
 
Registered: May 2007
Location: /dev/random
Distribution: CentOS, Fedora, RHEL, SuSE
Posts: 57
Thanked: 0

Original Poster
Question

Quote:
Originally Posted by lazlow View Post
ImageMagick-devel
I installed it but no help

@colucix: My box is CentOS 5.0:

Code:
# cat /etc/redhat-release
CentOS release 5.0 (Final)
Any other clue ?
cooljai is offline     Reply With Quote
Old 10-24-2008, 01:34 AM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 3,925
Thanked: 110
Looks like you may be missing a lot of updates. I installed as 5.0 but through updates I now show 5.2. When was the last time you ran a yum update?
lazlow is offline     Reply With Quote
Old 10-24-2008, 01:38 AM   #6
cooljai
Member
 
Registered: May 2007
Location: /dev/random
Distribution: CentOS, Fedora, RHEL, SuSE
Posts: 57
Thanked: 0

Original Poster
Quote:
Originally Posted by lazlow View Post
Looks like you may be missing a lot of updates. I installed as 5.0 but through updates I now show 5.2. When was the last time you ran a yum update?
Yeh, seems I'm missing updates. well, buddy, could you please reply with the command to install vital updates? (yum update ? )
cooljai is offline     Reply With Quote
Old 10-24-2008, 01:43 AM   #7
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 3,925
Thanked: 110
Well vital is going to depend on you. But to install the updates of whatever you already have installed run "yum update" as root. I will warn you that if you have not done so in a while (and it looks that way) you are going to have a lot of updates.
lazlow is offline     Reply With Quote
Old 10-24-2008, 02:07 AM   #8
cooljai
Member
 
Registered: May 2007
Location: /dev/random
Distribution: CentOS, Fedora, RHEL, SuSE
Posts: 57
Thanked: 0

Original Poster
Hi lazlow, Thanks for the info. Running 'yum update' commands results in several dependecy errors:
Code:
--lines--
--> Processing Dependency: libevent-1.1a.so.1 for package: mysql-proxy
--> Processing Dependency: libaprutil-0.so.0 for package: subversion
--> Processing Dependency: libgeos.so.2 for package: gdal
--> Processing Dependency: libmysqlclient.so.14 for package: perl-DBD-mysql
--> Finished Dependency Resolution
Error: Missing Dependency: python-imaging = 1.1.5-5.el5 is needed by package python-imaging-devel
Error: Missing Dependency: libneon.so.24 is needed by package subversion
Error: Missing Dependency: libapr-0.so.0 is needed by package subversion
Error: Missing Dependency: libmysqlclient.so.14(libmysqlclient_14) is needed by package perl-DBD-mysql
Error: Missing Dependency: libevent-1.1a.so.1 is needed by package mysql-proxy
Error: Missing Dependency: libmysqlclient.so.14 is needed by package perl-DBD-mysql
Error: Missing Dependency: libevent-1.1a.so.1 is needed by package nfs-utils
Error: Missing Dependency: libgeos.so.2 is needed by package gdal
Error: Missing Dependency: libaprutil-0.so.0 is needed by package subversion
We only need mysql, perl, php and httpd in this server.I've enabled 'updates','extras','centosplus', 'rpmforge' etc. repositories but doesnt help.

Any further hints in this regard ?
cooljai is offline     Reply With Quote
Old 10-24-2008, 03:04 AM   #9
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 3,925
Thanked: 110
1st be careful mixing 3rd party repos, you can get in a world of hurt that way.

Try "yum update yum" first and then try 'yum update' again(a good place to start anytime you are behind on updates). This may or may not help.

One possible problem is that you have mixed two third party repos that are not compatible(not as common as it used to be, but it still happens). Another is that you are so far behind that yum is lost. You can try yum updating a few of the apps you listed first, just to give yum a running start.

One thing to keep in mind when running a packaged distro is that there is no such thing as just a few packages you need. Packages have dependencies, and those dependencies often have dependencies. Also there may be system critical components that rely on some of those same dependencies. So changing one package may seem simple but one may have to update half the system just to update that one package (extreme example). Think of it as replacing just one line in a fishing net. This is why yum (generally) is superior to rpm(the tool not the package). It is also why it is such a pita when yum is being pissy.
lazlow is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Fix the issue in files tcsenthil Linux - General 2 05-23-2008 11:48 AM
dpkg configure issue...How do I fix it? mitchell7man Linux - Software 2 01-25-2007 10:21 PM
Slackware-current Imagemagick bug fix wastelander42 Slackware 2 02-03-2006 11:11 AM
Fix for K3B issue (kernel patch) cb9fl Linux - Software 2 03-07-2005 04:06 PM
Suse 9.0 Sound issue fix! Caeda Linux - Laptop and Netbook 11 01-19-2004 10:20 AM


All times are GMT -5. The time now is 09:00 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration