ubuntu12下用rvm安装ruby on rails
在ubuntu下安装最新的ruby on rails,这里使用rvm
1安装rvm
sudo apt-get install curl
curl -L get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm requirements
rvm install 1.9.3
sudo apt-get install curl bison build-essential git-core
sudo apt-get install zlib1g-dev libssl-dev libreadline-gplv2-dev lib64readline-gplv2-dev libxml2-dev
rvm pkg install zlib
rvm remove 1.9.1
rvm install 1.9.1
liusheng@ubuntu:~$ gem install rails ERROR: Loading command: install (LoadError) cannot load such file -- zlibERROR: While executing gem ... (NameError) uninitialized constant Gem::Commands::InstallCommand
Could not find a valid gem 'rdiscount' (>= 0) in any repository
$ gem source -r http://rubygems.org/$ gem source -a http://ruby.taobao.orggem install bundler rails