Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to set up Siri Proxy, and I come up to the steps:

rvmsudo rvm install 1.9.3
rvm use 1.9.3 --default
rvmsudo gem install eventmachine CFPropertyList httparty json uuidtools

But I can't do them due to these errors:

rvm: command not found
rvmsudo: command not found

I know this is due to Ruby Version Manager not being installed or properly set up. I am using Ubuntu 11.04 and I only have SSH access.

This is what I've done beforehand to install and initialize Ruby:

sudo apt-get install nano ruby build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion
bash < <(curl -s
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile
share|improve this question
when you run bash < <(curl -s it shows you where it is installed, you need to replace $HOME/.rvm with the installation path – mpapis Feb 12 '12 at 8:04
up vote 7 down vote accepted

The problem is that the commands rvm and rvmsudo are not in your PATH. The PATH is a variable that lists all of the directories that are searched for commands.

You need to find out where the rvm and rvmsudo commands are actually located; it could be in /usr/local somewhere or in /opt. If the RVM software was installed in /usr/local I would guess that it would work just fine; check /opt.

Then add the directories that contain commands to your PATH (on the command line and in .profile):

export PATH=$PATH:/opt/rvm/bin:/opt/rvm/sbin

(The directories are just examples.) Using $PATH preserves your current PATH and adds the two new directories on the end. Directories are searched from left to right and are separated by :.

More on this can be found in man bash or man sh or man ksh depending on your shell.

share|improve this answer

On Ubuntu you need to use ~/.bashrc instead of ~/.bash_profile in case if per user installations, So do:

echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bashrc

or if you're using ubuntu 12.04:

echo '[[ -s "/usr/local/rvm/scripts/rvm" ]] && . "/usr/local/rvm/scripts/rvm" # Load RVM function' >> ~/.bashrc

and after that:

source ~/.bashrc

and test with:

type rvm | head -1

you should get: rvm is a function

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.