我已经安装了ruby2.0并将其设置为默认值:
rabdelaz@q2-apps-gss01:~$ ruby -v
ruby 2.0.0p384 (2014-01-12) [x86_64-linux-gnu]
rabdelaz@q2-apps-gss01:~$ sudo ruby -v
ruby 2.0.0p384 (2014-01-12) [x86_64-linux-gnu]
但是当我安装滑轨时,我仍然得到以下信息:
rabdelaz@q2-apps-gss01:~$ sudo gem install rails
ERROR: Error installing rails:
i18n requires Ruby version >= 2.0.0.
我的ubuntu版本:
rabdelaz@q2-apps-gss01:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
答案 0 :(得分:0)
看起来最简单的方法就是通过RVM安装所有内容:\curl -sSL https://get.rvm.io | bash -s stable --rails
(参考:https://rvm.io/rvm/install)