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
分享到:
相关推荐
Ruby on Rails is the revolutionary online programming tool that makes creating functional e-commerce web sites faster and easier than ever. With the intuitive, straightforward nature of Ruby and the ...
Based on the bestselling first and second editions, Beginning Ruby, Third Edition is a leading guide to learn Ruby from the ground up. The new edition of this book provides the same excellent ...
Deploy and manage today's essential services on an enterprise-class, open operating system About This Book * Configure and manage Linux servers in varying scenarios and for a range of business ...
Designed for experienced IT professionals ready to advance their status, Exam Ref focuses on the critical thinking and decision making acumen needed for success at the MCSA level. Focus on the ...
### Ruby的手动编译安装与升级方法 #### 引言 Ruby是一种动态、面向对象的脚本语言...通过上述步骤,不仅能够实现Ruby的定制化安装与升级,还能够利用RubyGems方便地管理Ruby扩展包,极大地提升了开发效率和灵活性。
### 安装Oracle 10g R2在RHEL 5 & OEL 5 (x86_64)上的需求 #### 概述 本文档详细介绍了在Red Hat Enterprise Linux(RHEL)5和Oracle Enterprise Linux(OEL)5(x86_64架构)上安装Oracle 10g Release 2数据库的...
但在此之前,如果你遇到了“Error installing redis: redis requires Ruby version >= 2.3.0”的错误,这意味着Redis需要一个更高版本的Ruby才能安装。在安装Redis之前,请确保你的Ruby版本至少是2.3.0,如果尚未...
### Fedora Linux Toolbox: 1000+ Commands for Fedora, CentOS, and Red Hat Power Users #### Chapter 1: Starting with Fedora Linux In this chapter, readers are introduced to Fedora Linux, an advanced ...
根据提供的文件信息,本书《Installing and Configuring Windows Server 2012 Exam Ref 70-410》是一本针对Microsoft认证考试70-410的专业辅导教材。本书由Craig Zacker编写,并由Microsoft Press出版。以下是本书中...
CentOS (Community ENTerprise Operating System) is a Linux operating system maintained by a small team of core developers based on Red Hat Enterprise Linux (RHEL) Lead author Christopher Negus is the ...
Installing and Configuring Openfiler with DRBD and Heartbeat
知识点5:安装 Microsoft .NET Framework 4.7.2 Microsoft .NET Framework 4.7.2 是微软公司推出的一个软件框架,旨在帮助开发者更好地开发 Windows 应用程序。安装 Microsoft .NET Framework 4.7.2 的步骤如下: ...
Installing Your Driver on Windows Millennium INF File Guide
标题与描述均提到了“ruby on rails安装环境”,这表明文档主要关注的是如何在特定的环境中设置Ruby on Rails。Ruby on Rails(常简称为Rails)是一种用于开发Web应用程序的开源框架,采用Ruby语言编写,遵循MVC...