Tags:
cpan1Add my vote for this tag images1Add my vote for this tag installation1Add my vote for this tag plugin1Add my vote for this tag create new tag
, view all tags

How to install Imagemagick on Linux RedHat

I could not get ImagePlugin to work. It appeared that CPAN:Image::Magick was not picked up. Below are the installation instructions I found.

Environment

TWiki version: unspecified
TWiki plugins:  
Server OS: RedHat Linux
Web server: Apache
Categories: Installation, Plugins

-- ArthurClemens - 19 May 2007

Answer

Update 18 Feb 2008: installing on CentOS 5 is a breeze. Just do yum install ImageMagick-perl Forget the instructions below.

NEW 2011-01-25 yum install ImageMagick-perl on CentOS 5 can fail due to uninstalled dependencies. There seems to be an optimal order for installing from CPAN. This will give you some idea as to the type of problem you may experienece: http://andrewduck.name/2009/01/imagemagick-64x-on-centos-5/. It is important to get the right Shared Library (.so) files for your system, and probably best to use a slightly older version of ImageMagick. On Perl version 5.8.8 the only version I could get to work was ImageMagick-6.2.8.

I found these instructions that contained the magical installation steps. I list them here to keep them for eternity:

Install libjpeg-devel (needed for ImageMagick):

$ yum install libjpeg-devel

Install libpng-devel (needed for ImageMagick):

$ yum install libpng-devel

Install ImageMagick from source:

$ wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
$ gunzip -c ImageMagick.tar.gz | tar xvf -
$ cd ImageMagick-6.?.?
$ ./configure -with-perl=/usr/bin/perl
$ make; make install

Ensure that the ImageMagick libraries will be picked up by the system.
Edit /etc/ld.so.conf and add the following line to the end of the file:

/usr/local/lib/

Then run the following command to update the library database:

$ /sbin/ldconfig

Test that PerlMagick works:

$ perl -MImage::Magick -e 1
If the output from this command is blank then all is well. If instead you get an error saying the Image::Magick module can’t be found then read Getting ImageMagick and PerlMagick working on Fedora Core.

-- ArthurClemens - 19 May 2007

Thanks for documenting this and HowToInstallImageMagickOnMacOsX.

All ImageMagick support topics: DirectGraphPluginBadFileDescriptor, DirectedGraphPluginError, DirectedGraphPluginError1, FlowchartPluginFails, GenPDFAddOnImageErrors, HowToInstallImageMagickOnMacOsX, HowToInstallImageMagickOnRedHat, HowToInstallImageMagickOnSuse, HowToUseMsOfficeAttachmentsAsHTMLPlugin, ImageGalleryPluginAndImageMagick, LatexModePluginMakesEmptyImages, MediaWikiLikeImagePlugin, NoThumbnailsWithImageGalleryPlugin, PluginCausesError, PluginInstallScriptForLinux, ProblemWithDirectGraphPluginError2, SID-00009, SID-00271, SID-00936, SID-01196, SID-01962, UserListByPhotographNotWorking, WebStatistics

-- PeterThoeny - 06 Jun 2007

Thanks AC,

I've used the same instructions, modified ever so slightly for HowToInstallImageMagickOnSuse. The only difference was that we use the YAST setup tool provided by suse to install libjpeg-devel instead of 'yum' which is specific to redhat.

-- KeithHelfrich - 08 Jun 2007

Change status to:
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2011-01-25 - MatWitts
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.