unmuse
unmuse

Reputation: 687

Installing Ruby 1.9.2 on Ubuntu via RVM

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?

Upvotes: 1

Views: 3376

Answers (2)

Aayush
Aayush

Reputation: 1254

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 [email protected]

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

Upvotes: 3

mpapis
mpapis

Reputation: 53158

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

Upvotes: 0

Related Questions