可能重复:
How do I update Ruby Gems from behind a Proxy (ISA-NTLM)
在公司防火墙下的Windows上的rails安装上运行此命令时遇到问题:
ruby脚本/插件发现
我已经在系统上设置了http_proxy变量,这是我得到的错误:
C:/Ruby/lib/ruby/1.8/open-uri.rb:203:in `open_http': Non-HTTP proxy URI: http-proxy(RuntimeError)
from C:/Ruby/lib/ruby/1.8/open-uri.rb:616:in `buffer_open'
from C:/Ruby/lib/ruby/1.8/open-uri.rb:164:in `open_loop'
from C:/Ruby/lib/ruby/1.8/open-uri.rb:162:in `catch'
from C:/Ruby/lib/ruby/1.8/open-uri.rb:162:in `open_loop'
from C:/Ruby/lib/ruby/1.8/open-uri.rb:132:in `open_uri'
from C:/Ruby/lib/ruby/1.8/open-uri.rb:518:in `open'
from C:/Ruby/lib/ruby/1.8/open-uri.rb:30:in `open'
from C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/plugin.rb:7
28:in `scrape'
from C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/plugin.rb:7
02:in `parse!'
from C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/plugin.rb:7
01:in `each'
from C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/plugin.rb:7
01:in `parse!'
from C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/plugin.rb:5
17:in `parse!'
from C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/plugin.rb:5
33:in `parse!'
from C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/plugin.rb:9
67
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `ge
m_original_require'
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `re
quire'
from script/plugin:3