1

Trying to install and use ruby 1.9.2 on my server. Running Ubuntu 11.10.

    $ rvm use 1.9.2
    Using /usr/share/ruby-rvm/gems/ruby-1.9.2-p180
    $ ruby -v
    ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-linux]

Wait...what?

unmuse
  • 677
  • 2
  • 9
  • 21

2 Answers2

3

Below are the steps for a fresh installation if you need it at any time:

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

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

source ~/.bash_profile

source /etc/profile.d/rvm.sh

rvm requirements #Lets you know the system dependencies and if you need to install any other libraries

rvm install 1.9.2-p290

rvm use 1.9.2 --default

rvm gemset create demo

rvm demo@1.9.2

then install rails

gem install rails -v=3.0.4

If at any time u mess up your rvm you can remove it using rvm implode or rm -rf ~/.rvm

Aayush
  • 1,244
  • 5
  • 19
  • 48
0

You are using buggy version of RVM, use this instructions to install proper version: https://stackoverflow.com/a/9056395/497756

Community
  • 1
  • 1
mpapis
  • 52,729
  • 14
  • 121
  • 158