1.安装gcc

yuminstallgcc-c++

yuminstallflexautoconfzlibcurlzlib-develcurl-develbzip2bzip2-develncurses-devellibjpeg-devellibpng-devellibtiff-

develfreetype-develpam-devel

2.安装ruby

wgethttp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6-p286.tar.gz

tar

tarzxvfruby-1.8.6-p286.tar.gz

cdruby-1.8.6-p286

./configure

make

makeinstall

3.安装gems

wgethttp://rubyforge.org/frs/download.php/73882/rubygems-1.4.2.tgz

tarzxvfruby-1.8.6-p286.tar.gz

tarzxvfrubygems-1.4.2.tgz

cdrubygems-1.4.2

rubysetup.rb

4.安装rails(如果安装没反应可能是rubygems版本过低的缘故)

geminstallrails-v=2.3.8

5.安装msyql

yuminstallmysql-server

/sbin/chkconfig--levels235mysqldon

启动servicemysqldstart

6.安装mysqlgem

yuminstallmysql-devel

geminstallmysql--no-rdoc--no-ri----with-mysql-dir=/usr/bin--with-mysql-lib=/usr/

forfrashman:

mysql安装完后,默认密码是空,需要修改密码:

mysqladmin-urootpassword"newpass"

 如果root已经设置过密码,采用如下方法

mysqladmin-urootpasswordoldpass"newpass"

参考文章:

http://www.cnblogs.com/gnome/archive/2011/03/03/1969469.html

http://www.360fire.cn/ruby/rails/2010-09-02/7587.html

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/pengruikeji/archive/2011/05/19/6432704.aspx