In fact, many papers see, for example,
http://lanvige.iteye.com/blog/851836 pretty good. I recorded some of the situations I have about it.
Official website would have been very easy to install
$ bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
Do not copy a boot into the $ symbol
b rmv installation dependent curl and git
could curl and git
sudo aptitude install curl git
directly loaded. But if you are fitted in accordance with the instructions RVM
Source will be compiled
# Install git bash < <( curl -s https://rvm.beginrescueend.com/install/git ) # Install RVM bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
Will meet the build-essential and zlib1g zlib1g-dev issue is to advance the build environment installed.
sudo aptitude install zlib1g zlib1g-dev build-essential
2 RVM configuration and ruby
RVM installed, you can see the shows. Bahrain is also quite good tips. There are
a load RVM environment
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
Put. Bashrc or. Bash_profile
b According to rely on prompts to install the ruby
sudo aptitude install build-essential bison openssl libreadline5 libreadline5-dev curl git-core zlib1g zlib1g-dev libssl-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libmysqlclient-dev
c installed ruby 1.9.2 and set as the default
rvm install 1.9.2 rvm 1.9.2 --default
3. Install rails 3
gem install rails
Here a little note, rvm understanding, so do not add sudo. Because the design of RVM is based on the user's system can not be loaded to the next.