在 CentOS 上 安装 Rails 环境

1.安装 gcc 

yum install gcc

2.安装 ruby 

wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p72.tar.gztar zxf ruby-1.8.7-p72.tar.gz./configuremake && make installruby -v

3.安装 rubygem 

wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgztar -zxvf rubygems-1.3.5.tgzruby setup.rb

4. 安装 zlib 

yum install zlib-develfind / -name "zlib"cd /sunrise/www/ruby-1.8.7-p72/ext/zlibruby extconf.rbmake && make install

5. 安装 rails 

gem install railsrails -v

6.安装 mongrel 

gem install mongrel

7.安装 openssl 

yum install openssl-develfind / -name "openssl"cd /sunrise/g/ruby-1.8.7-p72/ext/opensslruby extconf.rb make && make install

8. 安装 mysql 

yum install mysql-devel.x86_64gem install mysql

你可能感兴趣的:(Ruby,Rails)