RMagick installed BUT "no such file to load -- RMagick"

Hi.

I have ImageMagick and RMagick successfully installed:
#gem list | grep -i rmagick
rmagick (2.3.0)

Unfourtunately, my RoR project will still not start.
I always see the following error in my apache error logs:

[error] /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' [error] no such file to load -- RMagick [error] ( [error] MissingSourceFile [error] ) [error] \tfrom /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’

Any ideas?

It even works if i try to load RMagick in the console, but not if i
access my application via browser!

# script/console
Loading development environment (Rails 2.0.2)

  *******************************************************************
  * config.breakpoint_server has been deprecated and has no effect. 
  • *******************************************************************
    

require ‘RMagick’
=> []

I got this same exact problem ( with newer versions, rmagick 2.8.0,
rails 2.2.2)
Did you ever find a solution?
Anyone else got any ideas?

I have teh same problem…

IRB:
irb(main):001:0> require ‘RMagick’
=> true

script/console (of my app):

require ‘RMagick’
=> []

include Magick
=> Object

image = Magick::ImageList.new()
=> []
scene=

But the same code in mail Controller gives me:
no such file to load – RMagick

I don’t know where the problem could be…

I had the same problem, and found the solution here, by Peturrr:
http://ubuntuforums.org/showthread.php?t=306216

Do not use:
sudo gem install rmagick

Peturrr solved this by uninstalling the gem and installing the
precompiled rmagick ubuntu package from the universe repos.:
sudo gem uninstall rmagick
sudo apt-get install librmagick-ruby

This solution solved my problem as well.
–Cedric dLB

In my case the reason was no capitzalized R and M,
which worked fine on windows but not on my new machine.

So not the same issue as OP

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs