Tuesday, September 20, 2011

Install ruby and rails.

Installing native libraries:



  • sudo apt-get install curl git zlib1g zlib1g-dev openssl



  • sudo apt-get install libpq-dev


Installing ruby version manager:


bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bashrc

 

Close the terminal and reopen again (reload config) then install:

rvm pkg install zlib
rvm pkg install openssl

 

rvm install 1.9.2
rvm use 1.9.2 --default

 

No comments:

Post a Comment