Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ImageMagick on Fedora

Status
Not open for further replies.

sedawk

Programmer
Feb 5, 2002
247
US
Hi,

When I tried to use Image::Magick, I got this message:

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 demo.pl line 5
Compilation failed in require at demo.pl line 5.
BEGIN failed--compilation aborted at demo.pl line 5.

Both Magick.so and Dynaloader.pm are there. What is wrong?
 
Check the permissions.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
 
No, I was the root though I don't think I need root to use this package. So permission is not a problem.
 
Did you install Image::Magick through yum or did you do it manually? And what version of Fedora are you running?

If you installed ImageMagick (the program) and ImageMagick-perl both from your Fedora yum repositories, they should be of the right versions to work together properly. Problems can arise if you i.e. install your Fedora's version of ImageMagick from yum but manually install perlmagick, because perlmagick might be newer and expects a newer SO file than what Fedora's ImageMagick RPM had installed, or vice versa.

Code:
[kirsle@eclipse ~]$ yum install ImageMagick-perl
Loaded plugins: refresh-packagekit
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package ImageMagick-perl.i386 0:6.3.8.1-4.fc9 set to be updated
filelists.sqlite.bz2                                     | 5.6 MB     00:42     
filelists.sqlite.bz2                                     | 341 kB     00:01     
--> Processing Dependency: ImageMagick = 6.3.8.1-4.fc9 for package: ImageMagick-perl
--> Processing Dependency: libWand.so.10 for package: ImageMagick-perl
--> Processing Dependency: libMagick.so.10 for package: ImageMagick-perl
--> Running transaction check
---> Package ImageMagick.i386 0:6.3.8.1-4.fc9 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                 Arch        Version              Repository      Size 
================================================================================
Installing:
 ImageMagick-perl        i386        6.3.8.1-4.fc9        fedora          204 k
Installing for dependencies:
 ImageMagick             i386        6.3.8.1-4.fc9        fedora          3.9 M

Transaction Summary
================================================================================
Install      2 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         

Total download size: 4.1 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): ImageMagick-perl-6.3.8.1-4.fc9.i386.rpm           | 204 kB     00:00     
(2/2): ImageMagick-6.3.8.1-4.fc9.i386.rpm                | 3.9 MB     00:05     
--------------------------------------------------------------------------------
Total                                           722 kB/s | 4.1 MB     00:05     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : ImageMagick                                       [1/2] 
  Installing     : ImageMagick-perl                                  [2/2] 

Installed: ImageMagick-perl.i386 0:6.3.8.1-4.fc9
Dependency Installed: ImageMagick.i386 0:6.3.8.1-4.fc9
Complete!
[kirsle@eclipse ~]$ perl -MImage::Magick -e "1;"
[kirsle@eclipse ~]$

-------------
Cuvou.com | My personal homepage
Code:
perl -e '$|=$i=1;print" oo\n<|>\n_|_";x:sleep$|;print"\b",$i++%2?"/":"_";goto x;'
 
I downloaded ImageMagick and un-tar/make/make install. I didn't use yum to install it. I am using Fedora 7.

In terms of versions, I use whatever shown on ImageMagick's website. Do you mean there is mismatch between versions? The thing is I didn't see anything unusual during installation.
 
In that case it might be possible that Perl's Image::Magick was compiled using the headers of a different version of ImageMagick... did you "perl Makefile.PL/make/make test/make install" the Perl module too, or did you install that via yum or rpm? If you installed it manually, try reinstalling it so it'll be recompiled using whatever version of ImageMagick is installed. If you installed ImageMagick manually but installed Perlmagick via RPM or yum, or vice versa, that's where problems tend to come from.

-------------
Cuvou.com | My personal homepage
Code:
perl -e '$|=$i=1;print" oo\n<|>\n_|_";x:sleep$|;print"\b",$i++%2?"/":"_";goto x;'
 
I don't understand: I tried yum and manual installation. But the same message.

Kirsle,
How do you use ImageMagick-Perl after you yum install?
 
ImageMagick-perl installs the Perl module, so you just "use Image::Magick;"

Code:
[kirsle@epsilon ~]$ rpm -ql ImageMagick-perl
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/Image
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/Image/Magick.pm
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/auto/Image
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/auto/Image/Magick
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/auto/Image/Magick/Magick.so
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/auto/Image/Magick/autosplit.ix
[...]

-------------
Cuvou.com | My personal homepage
Code:
perl -e '$|=$i=1;print" oo\n<|>\n_|_";x:sleep$|;print"\b",$i++%2?"/":"_";goto x;'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top