Web工具箱

向Rails3.0 前进

by darkhucx on 二.10, 2010, under Rails

VN:F [1.8.2_1042]
Rating: 0.0/5 (0 votes cast)

Rails3.0 beta需要Ruby 1.8.7 以上的版本,没办法Leopard自带的Ruby版本只有1.8.6.升级吧。 :cuss

mate ~/.profile

添加如下 :prosit

export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
. ~/.profile
sudo mkdir -p /usr/local/src
sudo chgrp admin /usr/local/src
sudo chmod -R 775 /usr/local/src
cd /usr/local/src

下载Ruby 1.9.1-p376并编译安装 :smart

curl -O ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p376.tar.gz
tar xzvf ruby-1.9.1-p376.tar.gz
cd ruby-1.9.1-p376
./configure --enable-shared --enable-pthread CFLAGS=-D_XOPEN_SOURCE=1
make
sudo make install
cd ..

get ruby 1.9

get ruby 1.9

ruby1.9

ruby1.9

ruby 1.9 make install

ruby 1.9 make install

which ruby
/usr/local/bin/ruby

安装ruby­gem :smart

curl -O http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz
tar xzvf rubygems-1.3.1.tgz
cd rubygems-1.3.1
sudo /usr/local/bin/ruby setup.rb
cd ..

更新rails到3.0 :yock

gem install tzinfo builder memcache-client rack rack-test rack-mount erubis mail text-format thor bundler i18n
gem install rails --pre
VN:F [1.8.2_1042]
Rating: 0 (from 0 votes)
:, , , ,

Leave a Reply

:yock :nausea :carnality :good :prosit :give :cold :dizzy :cuss :idle :nose :cannot :smart :Crying :abuse more »

CommentLuv Enabled

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...