How to install ImageMagick and RMagick on CEntOS

Archive

Mo Tu We Th Fr Sa Su
12345
6789101112
13141516171819
20212223242526
272829


Poll: Social Media

Which social media you used ?

  • email Email to a friend
  • print Print version
  • Add to your del.icio.us del.icio.us
  • Digg this story Digg this
  • Facebook

Did you enjoy this article?

(total 1 votes)
Adjust font size: Decrease font Enlarge font
How to install ImageMagick and RMagick on CEntOS

Yum, yum, yummi

Install dependencies first.

yum install tcl-devel -y
yum install libpng-devel -y
yum install libjpeg-devel -y
yum install ghostscript-devel -y
yum install bzip2-devel -y
yum install freetype-devel -y
yum install libtiff-devel -y

Download and Install ImageMagick

As root, do the following:

cd /usr/local/src
wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
tar xvfz ImageMagick.tar.gz
cd ImageMagick*
./configure
make
make install

This downloads and installs the latest stable ImageMaick package, but you can go to http://www.imagemagick.org/www/download.html and download the specific version you (might) need.

Add /usr/local/lib to ld.so.conf and reload

[ `grep /usr/local/lib /etc/ld.so.conf | wc -l` -eq 0 ] && echo "/usr/local/lib" >> /etc/ld.so.conf
ldconfig

Install RMagick ...

Finally install the ruby RMagick gem

gem install rmagick -r --no-ri --no-rdoc

I use to omit RDoc and ri documentation install, it takes longer, and the gem command is by itself SLOW. Remove the --no-rdoc --no-ri if you want to install'em.

blog comments powered by Disqus
  • email Email to a friend
  • print Print version
  • Add to your del.icio.us del.icio.us
  • Digg this story Digg this
  • Facebook

Semua yang ada pada website ini adalah ilmu, bacaan dan opini pribadi dalam journal hidup kami di Internet.
© 2000-2010 Gembels.com by dono a.k.a Widhe