I am trying to get an updated version of a RoR environment.
I am running Ubuntu 12.04, and I have this setup:
$ groups
user adm cdrom sudo dip plugdev lpadmin sambashare rvm
$ rvm -v
rvm 1.17.2 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
$ rvm list
rvm rubies
=* ruby-1.9.3-p327 [ x86_64 ]
# => - current
# =* - current && default
# * - default
$ ruby -v
ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]
$ gem -v
1.8.24
$ rails -v
Rails 3.2.9
All work fine. But now I am trying to install Thin and I found out that my rvmsudo command in pretty much useless:
$ rvmsudo echo 1
1
$ rvmsudo ruby -v
sudo: ruby: command not found
$ rvmsudo gem -v
sudo: gem: command not found
$ rvmsudo rails -v
sudo: rails: command not found
The same error when I run “rvmsudo thin install”.
I am completely stuck. In Ubuntu 10.04 it worked fine and even my first test in 12.04 I got rvmsudo working perfect. I followed the exact same steps this time, but nothing seems to work.
I installed RVM using “curl -L https://get.rvm.io | sudo bash -s stable”, I added myself to the rvm group, restarted the machine, used “source /etc/profile.d/rvm.sh” and installed my stuff normally.
Am I missing something here?
Thanks!
I managed to get it working.
I saw this serverfault page and I thought the problem was similar, so I gave it a try.
It seems there is something broken in version 1.17 of RVM. I installed a previous version using the command:
But note that RVM 1.17 installs ruby-1.9.3-p327 and RVM 1.16.13 installs ruby-1.9.3-p286.
Updating from 1.16.13 doesn’t work either, so lets hope they fix it soon.