RUBY: Require 'RMagick' not working?

Posted by igniteflow on Stack Overflow See other posts from Stack Overflow or by igniteflow
Published on 2010-04-18T16:30:43Z Indexed on 2010/04/18 16:33 UTC
Read the original article Hit count: 453

Filed under:
|
|

Hi, I have installed RMagick on OSX via MacPorts and can see it by running 'gem server'. However when I try to include it in my script using

require 'rubygems'
require 'RMagick'

It crashes with the following error message

./RMagick.rb:4:in `show_info': uninitialized constant Magick (NameError)
from ./RMagick.rb:24
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
from ./rmagick.rb:1
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
from get_pixels.rb:2

Could anyone tell me what I'm doing wrong?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about rmagick