hakanersu
4/23/2013 - 12:02 PM

# Ubuntu 13.04 , linux mint install RVM with Ruby 2.0.0-p353 , Rails 4.0.0

Ubuntu 13.04 , linux mint install RVM with Ruby 2.0.0-p353 , Rails 4.0.0

# If you meet install errors, see abid-hussain's comment


sudo apt-get --force-yes install build-essential openssl libreadline6 libreadline6-dev curl git-core \
zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev \
libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison
 
&&
 
\curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enabled
 
&&
 
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile
 
&&
 
source ~/.bash_profile
 
&&
 
rvm install 2.1.1p76
 
&&
 
rvm use --default 2.1.1p76
 
&&
ruby -v
 
 
&&
 
 
gem install rails --pre

&& 
# I recommend compiling source code "http://nodejs.org" than using apt-get.
#sudo apt-get install nodejs
wget http://nodejs.org/dist/v0.10.24/node-v0.10.24.tar.gz
tar -xvf node-v0.10.24.tar.gz
cd node-v0.10.24 && ./configure && make && sudo make install