From: winter heat on
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?
--
Posted via http://www.ruby-forum.com/.

From: winter heat on
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?

--
Posted via http://www.ruby-forum.com/.

From: Ben Bleything on
On Fri, Jul 23, 2010 at 4:24 PM, winter heat <blueskybreeze(a)gmail.com> wrote:
> 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

From: winter heat on
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

--
Posted via http://www.ruby-forum.com/.

From: Luis Lavena on
On Jul 23, 7:18 pm, winter heat <blueskybre...(a)gmail.com> wrote:
> 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'

--
Luis Lavena
 |  Next  |  Last
Pages: 1 2
Prev: Comparison of ways to install Tk
Next: Unsubscribe