具體過程如下:
1、InstantRails-2.0安裝後,在配置環境變量path中配置ruby/bin目錄(如果系統中有多個RUBY,執行命令行的時候系統認的就是path中的)
2、進入DOS命令行,執行gem update --system,結果
Updating RubyGems...
ERROR: While executing gem ... (Gem::RemoteSourceException)
HTTP Response 302 fetching http://rubygems.org/yaml
這是因爲gem的配置過低,無法進行遠程更新,執行gem -v 發現是1.0.1
3、從下面這個地址下載 rubygems-update-1.3.7.gem,http://rubyforge.org/frs/download.php/70695/rubygems-update-1.3.7.gem
然後DOS命令進行該文件所在的目錄,執行gem install --local rubygems-update-1.3.7.gem,出現信息
Successfully installed rubygems-update-1.3.7
1 gem installed
Installing ri documentation for rubygems-update-1.3.7...
Installing RDoc documentation for rubygems-update-1.3.7...
Could not find main page README
Could not find main page README
Could not find main page README
Could not find main page README