Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
sudo gem install goliath
给出错误
ERROR: Error installing goliath: goliath requires Ruby version >= 1
但是当尝试ruby -v它显示
ruby -v
ruby 1.9.3p374 (2013-01-15 revision 38858) [i686-linux]
为什么会这样??
sudo当 Ruby 与 rvm 一起安装时,这是通过安装 gems 时的常见错误。如果是这种情况,那么 sudo 会触发原始系统 Ruby,它往往是 1.8.7,因此会阻塞。
sudo
所以,如果你使用 rvm 停止使用sudo gem install xxxjust use gem install goliath,你应该没问题。
sudo gem install xxx
gem install goliath