narendra@narendra-laptop:~/rails_project/sample_app$ sudo gem install ZenTest
[sudo] password for narendra:
ERROR: Error installing ZenTest:
ZenTest requires RubyGems version ~> 1.8. Try 'gem update --system' to update RubyGems itself.
narendra@narendra-laptop:~/rails_project/sample_app$ gem update --system
Latest version currently installed. Aborting.
narendra@narendra-laptop:~/rails_project/sample_app$ gem --version
1.8.10
narendra@narendra-laptop:~/rails_project/sample_app$
最佳答案
试着不用sudo。
关于ruby-on-rails - 安装ZenTest gem时出错,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/7343093/