Ubuntu 下安装 Ruby 1.9.2 + Rails 3.0.3
?
1.安装RVM
sudo apt-get install ruby-rvm
?
?
?
?or
?bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
?
2.安装Ruby
?
rvm pkg install openssl
?(older format -?rvm package install openssl
)rvm pkg install iconv
?(older format -?rvm package install iconv
)rvm remove 1.9.2
rvm install 1.9.2 -C --with-openssl-dir=$HOME/.rvm/usr,--with-iconv-dir=$HOME/.rvm/usr
? ?如果不安装mysql数据库,则gem install mysql -with-mysql-config
?
4.修复rails-console
5.安装其它相关的gem