:centos 上rails环境搭建

转载自: http://zhangzhe.heroku.com/blogs/145-zai-CentOS-shang-an-zhuang-Rails-huan-jing

在 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.gz
tar zxf ruby-1.8.7-p72.tar.gz
./configure
make && make install
ruby -v

3.安装 rubygem
wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz
tar -zxvf rubygems-1.3.5.tgz
ruby setup.rb

4. 安装 zlib
yum install zlib-devel
find / -name "zlib"
cd /sunrise/www/ruby-1.8.7-p72/ext/zlib
ruby extconf.rb
make && make install

5. 安装 rails
gem install rails
rails -v

6.安装 mongrel
gem install mongrel

7.安装 openssl
yum install openssl-devel
find / -name "openssl"
cd /sunrise/g/ruby-1.8.7-p72/ext/openssl
ruby extconf.rb
make && make install

8. 安装 mysql
yum install mysql-devel.x86_64
gem install mysql

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