CentOS6.2安裝Redmine
使用該文中的方法成功安裝ruby。下面是ruby的安裝步驟。
1 刪除舊的ruby, yum erase ruby ruby-libs ruby-mode ruby-rdoc ruby-irb ruby-ri ruby-docs
2 wget http://nodejs.org/dist/v0.6.6/node-v0.6.6.tar.gz
wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz
wget http://www.sqlite.org/sqlite-autoconf-3070900.tar.gz
3 安裝一些基本包
yum install openssl-devel zlib-devel gcc gcc-c++ make autoconf readline-devel curl-devel expat-devel gettext-devel
4 安裝Node
tar -zxf node-v0.6.6.tar.gz
cd node-v0.6.6
./configure
make
make install
5 安裝yaml
tar -zxf yaml-0.1.4.tar.gz
cd yaml-0.1.4
./configure --prefix=/usr/local
make
make install
6 安裝ruby
tar -zxf ruby-1.9.3-p0.tar.gz
cd ruby-1.9.3-p0
./configure --prefix=/usr/local --enable-shared --enable-pthread --disable-install-doc --with-opt-dir=/usr/local/lib
make
make install
7 安裝rails
gem install rails
8
yum install ruby-devel
yum install sqlite-devel
9 安裝sqlite3
tar -zxf sqlite-autoconf-3070900.tar.gz
cd sqlite-autoconf-3070900
./configure
make
make install