How to install RMagick Gem on Linux/Ubuntu

How to install RMagick Gem on Linux/Ubuntu

While installing RMagick on Linux, if you are getting errors like this
“GraphicsMagick-config… no configure: error: Can’t install RMagick. Can’t find Magick-config or GraphicsMagick-config program. …”,
below is the solution for this error.

RMagick requires ImageMagick and which further requires loads of dependencies already available to get installed and work properly. I was figuring out of those all, and thank god got a quite simple and elegant way to do all that in just three commands.
First you will have to install imagemagick then libmagick9-dev and then finally you can install rmagick.


sudo apt-get install imagemagick
sudo apt-get install libmagick9-dev
sudo gem install rmagick

for debian
if ask for MagickCore library , search find / -name MagickCore.pc

yum install ImageMagick-devel
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig gem install rmagick

Source : http://expressica.com/2007/07/04/how-to-install-rmagick-gem-on-linuxubuntu/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s