`
wutao8818
  • 浏览: 618200 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

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
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics