安装ruby及rails

tar zxvf ruby-1.8.6-p287.tar.gz
cd ruby-1.8.6-p287
./configure --prefix=/usr/local/ruby;make;make install
cd ext/zlib
yum install -y zlib-devel
/usr/local/ruby/bin/ruby extconf.rb;make;make install
tar zxvf rubygems-1.3.6.tgz
cd rubygems-1.3.6
/usr/local/ruby/bin/ruby setup.rb
/usr/local/ruby/bin/gem install rails -v=2.3.4
export PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/ruby/bin

你可能感兴趣的:(职场,Ruby,Rails,休闲)