RMagick with Rails?

software development

#1

Anyone been able to get RMagick to work with the DH installation of Rails?

When I try to include RMagick and then try to create a new image like so…

require 'RMagick’
theImg = Magick::Image.new(100, 100)

… I get this error:
“uninitialized constant Magick”

Loading it a little more directly…
require '/usr/lib/ruby/gems/1.8/gems/rmagick-1.8.1/lib/RMagick.rb’
theImg = Magick::Image.new(100, 100)

…gets me this error:
“no such file to load – RMagick.so

Am I doing something wrong? I’m new to this whole Rails thing, but from all of the examples I’ve seen it seems like that should do it.


#2

I believe our RMagick install is currently broken and it will require an upgrade to the next release of Debian (Sarge) to make it happy. We are in the process of upgrading our servers and expect to be done in the next couple of months. At that time we’ll be able to revisit our RMagick setup and get it working.

  • Dallas
  • DreamHost Head Honcho/Founder

#3

Ah, thanks for checking it out.

I was going a bit crazy trying to figure out what I was doing wrong.


#4

Hi,
Now that the servers have been upgraded to Sarge can the latest RMagick gem be installed?
Thanks,
Frank


#5

A working version of RMagick is installed on all of our Sarge servers. We don’t plan to upgrade it soon. You can install any rubygem yourself under your home directory if you need a more recent version.

  • Dallas
  • DreamHost Head Honcho/Founder