请问各位,我在 irb 界面输入 gem list 返回不识别,安装后 gem 也还是不行,如下:
首先,感谢各位的回复哈,事实证明是楼猪脑子进翔了,我在 RubyGems Package Manager 可以敲入 gem install 命令了,但是远程的时候一直报错,难道是我网速的问题?求教各位继续批判。 C:\Ruby>gem install redcloth ERROR: http://gems.rubyforge.org/ does not appear to be a repository ERROR: could not find gem redcloth locally or in a repository
C:\Ruby>gem install hpricot ERROR: http://gems.rubyforge.org/ does not appear to be a repository ERROR: could not find gem hpricot locally or in a repository C:\Ruby>gem list --remote
*** REMOTE GEMS ***
ERROR: http://gems.rubyforge.org/ does not appear to be a repository ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) Errno::ETIMEDOUT: 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连 接尝试失败。 - connect(2) (http://gems.rubyforge.org/yaml)
#11 楼 @walkerofpercy gem sources -r http://gems.rubyforge.org/ 然后 gem sources -a http://ruby.taobao.org ?