Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sudo: rvm: command not found - RVM MultiUser install on Ubuntu 12.04 server

I'm setting up a server, it's an Ubuntu 12.04

first I installed RVM multi-user:

me@ubuntu$ \curl -L https://get.rvm.io | sudo bash -s stable

then after RVM installed, as the installation suggests I added myself to RVM group

usermod -a -G me rvm

installed ruby rvm insall 1.9.3 --default

then I tried to install system wide gem passenger and I get this:

me@ubuntu:~$ rvmsudo gem install passenger
sudo: gem: command not found

In fact any command run with rvmsudo just says sudo : {command}: not found

I need gems to be installed system wide, because it's a production server setup, also installing passenger-install-nginx-module requires root permissions as it installs int to /opt/nginx/

any thoughts?

like image 997
dark_ruby Avatar asked Dec 26 '22 14:12

dark_ruby


1 Answers

Maybe this bug affects you.
Instead of waiting for a fixed release you might install an older version of rvm:

\curl -L https://get.rvm.io | sudo bash -s -- --version 1.16.20

See https://rvm.io/rvm/install/ for details.

EDIT: This issue is now solved. rvmsudo is working for me (Ubuntu 12.04).

like image 152
trobter Avatar answered Jan 05 '23 16:01

trobter