简体   繁体   中英

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?

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

您正在使用有缺陷的RVM版本,请使用此说明安装正确的版本: https//stackoverflow.com/a/9056395/497756

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM