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

Discussion in 'Ruby' started by winter heat, Jul 23, 2010.

  1. winter heat

    winter heat Guest

    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/.
     
    winter heat, Jul 23, 2010
    #1
    1. Advertising

  2. winter heat

    winter heat Guest

    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/.
     
    winter heat, Jul 24, 2010
    #2
    1. Advertising

  3. On Fri, Jul 23, 2010 at 4:24 PM, winter heat <> 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
     
    Ben Bleything, Jul 24, 2010
    #3
  4. winter heat

    winter heat Guest

    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/.
     
    winter heat, Jul 24, 2010
    #4
  5. winter heat

    Luis Lavena Guest

    On Jul 23, 7:18 pm, winter heat <> 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
     
    Luis Lavena, Jul 24, 2010
    #5
  6. winter heat

    winter heat Guest

    Luis Lavena wrote:
    > On Jul 23, 7:18�pm, winter heat <> wrote:
    >> � require 'rmagick'
    >>
    >> 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'


    strange, i am using 'rmagick' and it works too.

    --
    Posted via http://www.ruby-forum.com/.
     
    winter heat, Jul 24, 2010
    #6
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chad
    Replies:
    4
    Views:
    8,420
  2. yang jdong
    Replies:
    7
    Views:
    131
    yang jdong
    Mar 15, 2006
  3. Pito Salas
    Replies:
    1
    Views:
    159
    Tim Hunter
    Apr 24, 2009
  4. Jian Lin
    Replies:
    9
    Views:
    1,656
    Abder-Rahman Ali
    Sep 6, 2010
  5. Toni Tanskanen

    RMagick doesn't work

    Toni Tanskanen, Dec 17, 2010, in forum: Ruby
    Replies:
    1
    Views:
    307
    Rajinder Yadav
    Dec 20, 2010
Loading...

Share This Page