Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

ruby

rvm

My RVM system-wide installation scripts are broken, both in the form of Linode StackScripts and Chef-solo Recipes.

Per the instructions on the RVM website, my scripts execute the following commands as root to install RVM on a system-wide basis:

echo "Installing RVM system-wide" >> $logfile
bash < <( curl -L http://bit.ly/rvm-install-system-wide )
cat >> /etc/profile <<'EOF'
# Load RVM if it is installed,
#  first try to load  user install
#  then try to load root install, if user install is not there.
if [ -s "$HOME/.rvm/scripts/rvm" ] ; then
  . "$HOME/.rvm/scripts/rvm"
elif [ -s "/usr/local/rvm/scripts/rvm" ] ; then
  . "/usr/local/rvm/scripts/rvm"
fi
EOF

source /etc/profile

The key piece above is the url http://bit.ly/rvm-install-system-wide. As of today, 3/24/2011, this url no longer in service. It results in a GitHub 404 error.

The following url on the RVM website used to contain the instructions for the system-wide install: http://rvm.beginrescueend.com/deployment/system-wide/. However, that url now redirects to the RVM homepage.

In the interests of getting RVM system-wide installation scripts to work again, what are the new instructions?

like image 573
ms-ati Avatar asked Mar 24 '11 15:03

ms-ati


People also ask

Can we install RVM in Windows?

RVM supports most UNIX like systems and Windows (with Cygwin or Bash on Ubuntu on Windows). The basic requirements are bash , curl , gpg2 and overall GNU version of tools - but RVM tries to autodetect it and install anything that is needed.


1 Answers

Here is my fix to install the last working version before he major change:

bash <( curl -L https://github.com/wayneeseguin/rvm/raw/1.3.0/contrib/install-system-wide ) --version '1.3.0'

This is working for me now in production. Good luck!

UPDATE

Also, if you are using the chef cookbook from https://github.com/fnichol/chef-rvm or something similar, you can use the following options:

:rvm => {
  :system_installer_url => "https://github.com/wayneeseguin/rvm/raw/1.3.0/contrib/install-system-wide",
  :version => "1.3.0"
}
like image 105
phlipper Avatar answered Nov 15 '22 12:11

phlipper