Ruby on Rails Wednesday, August 31, 2011

On Aug 31, 1:42 pm, Alexie Drobyazko <droba...@gmail.com> wrote:
> I have:
>
> Windows XP Professional SP3
> Ruby 1.8.7
> Rails 3.0.10
> Bundler 1.0.15
> ImageMagick 6.5.6 Q8
> Rmagick 2.12.9
>
> My gemfile:
>
> gem 'rmagick-2.12.0-x86-mswin32', '2.12.0', :path => 'c:/sites/
> uplodify/vendor'

Well you're telling bundler that your rmagick gem is in 'c:/sites/
uplodify/vendor'
but from what you've written below it seems like it's in the normal
location. Have you tried removing the path option ?

Fred

>
> My controller:
>
> require 'RMagick'
>
> Here I have installed my rmagick gem:
>
> c:/ruby/ruby187/lib/ruby/gems/1.8/gems/rmagick-2.12.0-x86-mswin32/
>
> But when I launch the controller, there is a message:
>
> no such file to load -- RMagick
>
> Then, I change require 'RMagick' to require 'c:/ruby/ruby187/lib/ruby/
> gems/1.8/gems/rmagick-2.12.0-x86-mswin32/lib/RMagick.rb', and it's
> working!!!
>
> Question:
>
> why require 'RMagick' is not working, but require 'c:/ruby/ruby187/lib/
> ruby/gems/1.8/gems/rmagick-2.12.0-x86-mswin32/lib/RMagick.rb' is
> working????
>
> Thanks a lot!

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment