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'
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