Old Emmanuel Oga's Weblog (new one is at www.emmanueloga.com)

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

Posted in imagemagick, linux, rmagick, ruby, ubuntu by emmanueloga on 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 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

Subscribe to comments with RSS.

  1. Alan said, on febrero 25, 2008 at 7:32 am

    Use this to download ImageMagick:

    wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.3.8-11.tar.gz

  2. risto said, on febrero 29, 2008 at 5:30 pm

    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

  3. Ashabul Yeameen said, on abril 4, 2008 at 9:22 am

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



Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s

A %d blogueros les gusta esto: