Rails 3, Ruby 1.9, NginX and MongoDB 在CENTOS5.6上的试水
http://www.freshblurbs.com/install-rails-3-ruby-1-9-nginx-and-mongodb-debian-lenny
参照这个文章
几点MARK:
1. gcc
我那个很悲催 没gcc
最后是用这么条语句搞定
sudo yum install gcc-c++
2. 在安装rvm时发现git也没! 抓狂啊 感觉我的centos真是干净的恐怖
http://www.kernel.org/pub/software/scm/git/ 中下载最新的 然后tar ./configure make makeinstall 之就不说了
PS: rvm 安装:https://rvm.beginrescueend.com/rvm/install/
其中要注意最后要启用它
source .bash_profile type rvm | head -1 rvm notes
3. 安装nginx时提示没有PCRE库 很灵异 -=
反正没什么就找什么下 link: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.10.tar.bz2
sudo tar jxvf pcre-8.10.tar.bz2 ./configure make make install