系统是 centOS6.3 x64
ruby -v ruby 2.0.0dev (2013-01-07 trunk 38733) [x86_64-linux]
gem -v 1.8.25
/usr/local/webserver/ruby/bin/rails -v Rails 3.2.12
我的开发环境都是手工编译安装的,没有用 yum,
业余爱好者,第一次听说 ruby 想整一个瞧瞧。以前自学的 PHP. (注:php mysql apache redis 这些都服务都是正常的。现在就是想整多一个 ruby 上来) 整个环境安装的过程:
wget http://ruby.taobao.org/mirrors/ruby/2.0/ruby-2.0.0-rc1.tar.gz
tar zxf ruby-2.0.0-rc1.tar.gz && cd ruby-2.0.0-rc1 ./configure --prefix=/usr/local/webserver/ruby --enable-pthread make && make install
ln -s /usr/local/webserver/ruby/bin/ruby /usr/bin/ruby ln -s /usr/local/webserver/ruby/bin/gem /usr/bin/gem
wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.25.tgz
tar xf rubygems-1.8.25.tgz && cd rubygems-1.8.25 ruby setup.rb
gem sources --remove http://rubygems.org/ gem sources -a http://ruby.taobao.org/ gem sources -l *** CURRENT SOURCES ***
gem install rails gem install passenger
======================================== 安装 passenger apache2 modul /usr/local/webserver/ruby/bin/passenger-install-apache2-modul
然后就这样子了:
由于 apache 是源码编译安装的,增加了参数。再来,还是不行