?
?更新apt源?
sudo apt-get update
1.安装RVM
rvm pkg install openssl
rvm remove 1.9.2
rvm install 1.9.2 -C --with-openssl-dir=$HOME/.rvm/usr
sudo apt-get install curl
sudo apt-get install git-core
?
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
or
bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
2.安装Ruby
sudo apt-get install zlib1g-dev
rvm install 1.9.2-p180
gem install rails -v3.0.3
3.安装mysql
? ?如果不安装mysql数据库,则gem install mysql -with-mysql-config
sudo apt-get install libmysqlclient-dev
sudo apt-get install mysq-server
4.安装其它相关的gem
?