cloudfoundry/vcap — Issue #192: rvm install
Author: pepoviola
Created: 2012-02-29 15:39:47+00:00
State: open

Hi, in the install script rvm is installed this way

pepo@cloud1:~$ curl -s -k -B https://rvm.beginrescueend.com/install/rvm > /tmp/install_rvm
pepo@cloud1:~$ bash /tmp/install_rvm

Deprecated command, please use:

bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)

But as you can see, this command is Deprecated, and the rvm do not install...
Please replace with the command:

pepo@cloud1:~$ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)

for those who installed and attempting to start the service I get this error:

pepo@cloud1:~/cloudfoundry/vcap$ bin/vcap start
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- nats/client (LoadError)
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from bin/vcap:26

the workaround are:

echo "Install rvm"
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)^C
pepo@cloud1:~/cloudfoundry/vcap$ rvm_path="$HOME/.rvm"

# remove rake from default and global gems and instead install manually
pepo@cloud1:~/cloudfoundry/vcap$ rm $rvm_path/gemsets/default.gems
pepo@cloud1:~/cloudfoundry/vcap$ rm $rvm_path/gemsets/global.gems

pepo@cloud1:~/cloudfoundry/vcap$ echo "Installing various rubies"
pepo@cloud1:~/cloudfoundry/vcap$ rvm install 1.9.2-p180
pepo@cloud1:~/cloudfoundry/vcap$ rvm --default 1.9.2-p180
pepo@cloud1:~/cloudfoundry/vcap$ rvm install 1.8.7-p352
pepo@cloud1:~/cloudfoundry/vcap$ rvm use 1.8.7-p352

# install only rake 0.8.7
pepo@cloud1:~/cloudfoundry/vcap$ gem install rake --version '0.8.7' --no-rdoc --no-ri
pepo@cloud1:~/cloudfoundry/vcap$ rvm use 1.9.2-p180
pepo@cloud1:~/cloudfoundry/vcap$ gem install rake --version '0.8.7' --no-rdoc --no-ri

pepo@cloud1:~/cloudfoundry/vcap$ echo "Installing bundler"
pepo@cloud1:~/cloudfoundry/vcap$ cd ~/cloudfoundry/vcap
pepo@cloud1:~/cloudfoundry/vcap$ gem install bundler --no-rdoc --no-ri
pepo@cloud1:~/cloudfoundry/vcap$ rake bundler:install

and now we can start the service:

pepo@cloud1:~/cloudfoundry/vcap$ bin/vcap start