I've tested this tutorial in the following Ubuntu versions:RVM is a command-line tool which allows you to easily install, manage, and work with multiple ruby environments from interpreters to sets of gems. It helps to keep sanity when working with multiple projects because it avoids conflicts between ruby dependencies.
Ubuntu Server 12.04 LTS 32 bits
Ubuntu Desktop 12.10 64 bits
Ubuntu Desktop 13.04 64 bits
For setup this, first install curl for run the rvm installer:
sudo apt-get update && sudo apt-get install curl -y
Them, run the installer:
\curl -L https://get.rvm.io | bash -s stable
Make rvm acessible to your enviroment:
echo 'source ~/.rvm/scripts/rvm' >> ~/.bash_aliases && bash
For install the related dependencies to everything works fine, run this command:
rvm requirements
That will show something like this:
Additional Dependencies: # For ruby: apt-get --no-install-recommends install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev libgdbm-dev ncurses-dev automake libtool bison subversion pkg-config libffi-dev
With apt-get, install what is asking for:
sudo apt-get --no-install-recommends install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev libgdbm-dev ncurses-dev automake libtool bison subversion pkg-config libffi-dev -y
Install Ruby 1.9.3:
rvm install 1.9.3
Make 1.9.3 the default version:
rvm use 1.9.3 --default
Setup rubygems:
rvm rubygems current
And, finally, rails:
gem install rails
Say if it works for you :)
0 comments:
Post a Comment