Installing Ruby and RubyGems on Centos 5

I got around to setting up Ruby on our new Centos 5 server today and ran into a snag. I ran:

yum install ruby

And went on to installing rubygems. However in installing rubygems I got an error that rdoc was not installed. Now I don’t remember ever having to install RDoc on my mac so I did a quick google search. Seems that RDoc is part of the standard ruby install but my package didnt have it. So I uninstalled my my rpm and went on about compiling from source. However when I went to install rubygems this time I got an error about zlib. After another quick google search I realized that I had not installed the other ruby packages. So I killed my compiled source for ruby and reinstalled from rpms this time running


yum install -y ruby
yum install -y ruby-devel ruby-docs ruby-ri ruby-irb ruby-rdoc

Then my rubygems package installed correctly and I am on my way.

http://blog.simb.net/2007/08/21/installing-ruby-and-rubygems-on-centos-5/
-------------------------------------------------------------
1, Install Rails components:

yum install ruby ruby-devel ruby-libs irb rdoc ruby-mysql

2, install Gems

wget http://rubyforge.org/frs/download.php/29548/rubygems-1.0.1.tgz

tar -xvzf rubygems-1.0.1.tgz

cd rubygems-1.0.1

ruby setup.rb

http://www.my-whiteboard.com/linux-admin/how-to-install-ruby-on-rails-on-centos.html
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值