我刚刚设置了一台新的Ubuntu 10.04电脑并尝试安装一些gems。
gerhard@superserver:~$ sudo gem install rake
ERROR: http://gems.rubyforge.org/ does not appear to be a repository
ERROR: could not find gem rake locally or in a repository
gerhard@superserver:~$
我原以为是因为我的HTTP_PROXY
设置不正确(我在代理后面),但实际上它是正确的。另外,在没有sudo
的情况下,gem也可以成功安装。
gerhard@superserver:~$ gem install rake
WARNING: Installing to ~/.gem since /var/lib/gems/1.8 and
/var/lib/gems/1.8/bin aren't both writable.
WARNING: You don't have /home/gerhard/.gem/ruby/1.8/bin in your PATH,
gem executables will not run.
Successfully installed rake-0.8.7
1 gem installed
Installing ri documentation for rake-0.8.7...
Installing RDoc documentation for rake-0.8.7...
gerhard@superserver:~$
有什么想法可以解决这个问题,或者我应该查看哪些可能导致此问题的原因?