RVM

首先安裝一些lib,讓rvm的ruby安裝順利
複製內容到剪貼板
代碼:
sudo apt-get install curl build-essential zlib1g-dev libssl-dev libreadline5-dev



sudo apt-get install libxslt-dev libxml2-dev

rvm install 1.9.2 --with-openssl

sudo apt-get install libsqlite3-dev build-essential 
sudo gem install sqlite3-ruby

checking for pg_config... no
sudo apt-get install libpq-dev

rvm @global gem install ruby-debug19 -- --with-ruby-include=$rvm_path/src/$(rvm tools strings)

你可能感兴趣的:(Ruby)