2011年4月6日水曜日

Ruby1.9.2-p136インストール

■最新 Ruby1.9.2-p136インストール
yum install gcc
wget http://dag.wieers.com/packages/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
rpm -Uhv rpmforge-release-0.5.2-2.el5.rf.i386.rpm
vi /etc/yum.repos.d/rpmforge.repo
enabled = 1

enabled = 0
yum --enablerepo=rpmforge install -y checkinstall
yum install -y rpm-build
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p136.tar.gz
tar zxvf ruby-1.9.2-p136.tar.gz
cd ruby-1.9.2-p136
./configure
make
/usr/sbin/checkinstall --fstrans=no
ls -l /usr/src/redhat/RPMS/i386/
rpm -ivh /usr/src/redhat/RPMS/i386/ruby-1.9.2-p136-1.i386.rpm
ruby -v