rmagick for Ruby 1.8.6 won't work for Ruby 1.8.7?

W

winter heat

if i install

2.12.0 binary gem for Ruby 1.8.6 2009-10-04 16:05
RMagick-2.12.0-ImageMagick-6.5.6-8-Q8.zip

which is from http://rubyforge.org/frs/?group_id=12&release_id=43232

then when i use ruby 1.8.7 to

require 'rubygems'
require 'rmagick'

it will say:

c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_re
quire': no such file to load -- rmagick (LoadError)
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `re
quire'
from try.rb:3

Does that mean I have to install Ruby 1.8.6 to cover up 1.8.7 in order
to use rmagick?
 
W

winter heat

oh well, i set up a new XP SP3 virtual machine,

installed

Ruby 1.8.6 patch 398

and installed

2.12.0 binary gem for Ruby 1.8.6 2009-10-04 16:05

the same thing happened:

irb(main):001:0> require 'rubygems'
=> true

irb(main):002:0> require 'rmagick'
LoadError: no such file to load -- rmagick
from
c:/Ruby186/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from
c:/Ruby186/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from (irb):2


Then, I even installed Ruby 1.8.6-p26 legacy installer

and similar things happened. oh well... rmagick seems to be fairly
broken or some change need to make it work?
 
B

Ben Bleything

irb(main):002:0> require 'rmagick'
LoadError: no such file to load -- rmagick

According to the docs, you must require 'RMagick'... note the capital
R and M. I don't know if that makes a difference on windows, but it's
something to try.

Ben
 
W

winter heat

ok, i don't know whether it is required to run the .exe in the rmagick
distribution, but there needs to be one step:

cd to the path of the unzipped rmagick files
gem install rmagick --local

and then

require 'rmagick'

will works
 
L

Luis Lavena

if i install

2.12.0 binary gem for Ruby 1.8.6    2009-10-04 16:05
RMagick-2.12.0-ImageMagick-6.5.6-8-Q8.zip

which is fromhttp://rubyforge.org/frs/?group_id=12&release_id=43232

then when i use ruby 1.8.7 to

  require 'rubygems'
  require 'rmagick'

it will say:

c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_re
quire': no such file to load -- rmagick (LoadError)
        from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `re
quire'
        from try.rb:3

Does that mean I have to install Ruby 1.8.6 to cover up 1.8.7 in order
to use rmagick?

No, the require is case-sensitive, needs to be:

require 'RMagick'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top