我有RubyMine的4.0.1问题使用每次我从RubyMine的运行Ruby脚本包含唯一的行不能在Windows 7推出 从RubyMine的
require 'rmagick'
我收到
LoadError: 126: The specified module could not be found. - C:/Ruby193/lib/ruby/gems/1.9.1/gems/rmagick-2.13.1/lib/RMagick2.so
from C:/Ruby193/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in `require'
from C:/Ruby193/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require'
from C:/Ruby193/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rmagick-2.13.1/lib/RMagick.rb:11:in `<top (required)>'
from C:/Ruby193/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in `require'
from C:/Ruby193/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require'
from C:/Ruby193/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
from (irb):1
from C:/Ruby193/bin/irb:12:in `<main>'
但是当我从CMD运行相同的脚本,一切都运行得很好。 我试图改变运行配置,调整环境变量,但似乎没有任何工作。
你有系统'PATH'环境ImageMagick的dll文件? – CrazyCoder 2012-03-23 11:02:57
是的。一切正常,除非我从RubyMine运行脚本。 – vladhid 2012-03-23 14:45:43
尝试在命令行和RubyMine中使用'p ENV [“PATH”]'运行脚本,它是否产生相同的输出? – CrazyCoder 2012-03-23 16:44:21