我想在Windows上安裝rmagick for rails應用程序。在Windows上rmagick問題
我已經下載了以下文件,並按照說明:
http://rubyforge.org/frs/download.php/64917/RMagick-2.12.0-ImageMagick-6.5.6-8-Q8.zip
如果我運行IRB和require 'rubygems'; require 'RMagick'
,它的確定。
但如果我require 'RMagick'
在軌控制檯,它給了我下面的錯誤:
irb(main):001:0> require 'RMagick'
LoadError: no such file to load -- RMagick
from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-3.
0.4/lib/active_support/dependencies.rb:239:in `require'
from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-3.
0.4/lib/active_support/dependencies.rb:239:in `require'
from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-3.
0.4/lib/active_support/dependencies.rb:225:in `load_dependency'
from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-3.
0.4/lib/active_support/dependencies.rb:596:in `new_constants_in'
from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-3.
0.4/lib/active_support/dependencies.rb:225:in `load_dependency'
from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-3.
0.4/lib/active_support/dependencies.rb:239:in `require'
from (irb):1
這是爲什麼?