RMagick on Ubuntu Gusty

If you're trying to install RMagick on Ubuntu Gusty, you won't have much luck, as the new RMagick doesn't support the version of ImageMagick that Gusty currently has.

To install RMagick on Gusty, run:

sudo apt-get remove librmagick-ruby librmagick-ruby1.8 librmagick-ruby-doc
sudo apt-get install libmagick9-dev
sudo gem install rmagick -v 1.15.12

These commands assume you have Ruby and RubyGems installed already.

These instructions also work for Debian 4.

Comments

Thank you! I'd mangled my

Thank you! I'd mangled my RoR app for two days trying different "fixes" which invariably ended with some build error out of the gem...

Finally I read your post, and figured why not? So I stripped the server bare of imagemagick, libmagick9, libmagick9-dev, etc, etc and tried your steps.

Huzzah! The app is back up and running for image uploads, thumbnailing, etc.

Grats.

Thanks

Thanks

Thank you!

I thought I was going to have to tear my hair out all night, an arduous task if you knew how thick my hair is. It was the gem rmagick -v part that did it. I didn't think about targeting the gem to a version.

Cheers!