在 CentOS 上 安装 Rails 环境
2011/12/30 9:26:58 fireDragonpzy http://firedragonpzy.iteye.com
我要评论(0)
- 摘要:1.安装gccyuminstallgcc2.安装rubywgetftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p72.tar.gztarzxfruby-1.8.7-p72.tar.gz./configuremake&&makeinstallruby-v3.安装rubygemwgethttp://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgztar
- 标签:rails 安装 CentOS
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