Subscribed unsubscribe Subscribe Subscribe

k-yamadaのブログ

プログラミングのメモ

Install RVM In Ubuntu 12.04

Install libyaml

$ wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
$ tar xzvf yaml-0.1.4.tar.gz
$ cd yaml-0.1.4
$ ./configure --prefix=/usr/local
$ make
$ sudo make install

Install rvm

$ sudo apt-get install build-essential git-core curl -y

To start the RVM installation run the following command

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

Add .bash_profile

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

Install ruby 1.9.3

$ rvm install 1.9.3 
$ rvm use --default 1.9.3