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 <[email protected]>, Michal Papis <[email protected]> [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!
echo $PATHvsrvmsudo echo $PATH? - Justin ᚅᚔᚈᚄᚒᚔ/usr/local/rvm/gems/ruby-1.9.3-p327@rails329/bin:/usr/local/rvm/gems/ruby-1.9.3-p327@global/bin:/usr/local/rvm/rubies/ruby-1.9.3-p327/bin:/usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games- Apollorvm reload. Then I got a secure_path problem every time I try to run rvmsudo. It says toexport rvmsudo_secure_path=1. Now I am trying to figure that out. - Apollo