0

Following this advice for installing RVM 1.5.2, I used these commands to install RVM 1.5.2 system wide (into /usr/local/rvm):

curl http://rvm.beginrescueend.com/releases/rvm-install-head > rvm-install-head
sudo bash rvm-install-head

That, in itself, worked. I added the appropriate source statements in my .bashrc file:

[[ -s "/usr/local/rvm/scripts/rvm" ]] && source "/usr/local/rvm/scripts/rvm"

and proceeded to attempt to install Ruby 1.9.2 with this command:

sudo rvm install 1.9.2-head

However, I get "rvm: command not found". If I try it without sudo, I don't have appropriate permissions to create the necessary directories and so forth, as would be expected. The problem seems to be that the shell function rvm is defined for my user, but when running sudo, it doesn't seem to be available.

My question: What is the correct way to install rubies in a system wide RVM 1.5.2 install?

I'm running Ubuntu 10.04.

Community
  • 1
  • 1
gunit888
  • 571
  • 6
  • 14

2 Answers2

0

If you have existing provisioning scripts that depend on the old system-wide install script, then staying at RVM version 1.3.0 is another option to consider.

(See RVM system-wide install script url broken -- what is replacement?)

Community
  • 1
  • 1
ms-ati
  • 1,297
  • 1
  • 13
  • 17
0

It appears that the install scripts have been updated to correct this, so it doesn't appear to be an issue anymore.

gunit888
  • 571
  • 6
  • 14