Ubuntu编译ruby
要用sass,需要ruby2.0以上版本
ubuntu升级ruby到2.1
1.安装前更新:
sudo apt-get -y update
sudo apt-get install cmake
sudo apt-get install -y build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev
libncurses5-dev libffi-dev curl git-core openssh-server redis-server postfix checkinstall libxml2-dev
libxslt-dev libcurl4-openssl-dev libicu-dev mysql-client libmysqlclient-dev libreadline6-dev
2.下载并安装ruby:
cd ruby-2.1.2
./configure
make
sudo make install