Emmanuel Oga’s Weblog

Setting up rmagick (needs ImageMagick 6.3.x) on Ubuntu

Posteado por: emmanueloga en: Enero 25, 2008

I wanted to update rmagick to the latest version of the gem, so I ran “sudo gem install rmagick”. The version that was going to be installed was 2.1.0, and it needed ImageMagick lib 6.3.x.

I went ahead and downloadoaded 6.3.8 from ImageMagick site (couldn’t use apt-get this time, latest version on repositories I found was 6.2.4.5). I had a previous version of imagemagick laying on my system. So I ran:

  1. sudo apt-get remove imagemagick
  2. tar xvvzf ImageMagick.tar.gz
  3. cd ImageMagick
  4. ./configure –prefix=/usr
  5. make
  6. sudo make install
  7. sudo gem install rmagick
  8. sudo gem install rmagick -v 1.15.12 if you want rmagick v1 installed.

That’s all!

(I got info from this thread)

3 comentarios para "Setting up rmagick (needs ImageMagick 6.3.x) on Ubuntu"

that got me going, however I had trouble with the fonts when I tried to convert pdf/ps files. this was easy to fix with:

./configure –prefix=/usr –with-gs-font-dir=/usr/share/fonts/type1/gsfonts

Optionally, you can fix it without recompiling:

sudo ln -s /usr/share/fonts/type1/gsfonts/ /usr/share/ghostscript/fonts

Gracias!
I was stuck with this. Last time I just installed rmagick library, instead of trying to compile from the source.

-Yeameen

Escribe un comentario