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
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
本文详细记录了在CentOS 5服务器上安装Ruby及其相关组件RubyGems的过程。作者首先尝试使用包管理器安装Ruby,但在安装RubyGems时遇到缺少依赖的问题。随后通过从源代码编译安装Ruby来解决这些问题,并最终成功安装了Ruby及RubyGems。

2264

被折叠的 条评论
为什么被折叠?



