OS X Snow Leopard (ROR環境)on my MBP

ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]

rails -v
Rails 2.3.5

gem -v
1.3.5
(update 2010/11/29)
gem update –system (use sudo)
1.3.7

git –version
git version 1.7.3.2

httpd -v
Server version: Apache/2.2.15 (Unix)
Server built:   Jul  1 2010 17:16:33

sqlite3 -version
3.6.12

===============

php -v
PHP 5.3.3 (cli) (built: Aug 22 2010 19:41:55)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
—————
gem update to 1.3.7 (from 1.3.5)
RVM
2011/11/29 installed
rvm -v
rvm 1.1.1

rvm install ree
rvm install ruby-1.9.2-p0
rvm list


rvm rubies
ree-1.8.7-2010.02 [ x86_64 ]
ruby-1.9.2-p0 [ x86_64 ]
————————-
ree-1.8.7 + rails 2.3.9
ruby-1.9.2 + rails 3.0.3
——————————

rake db:migrate (若出現下面錯誤訊息,代表沒有安裝 sqlite3-ruby)

rake aborted!
no such file to load — sqlite3

[請安裝最新版] http://rubyforge.org/projects/sqlite-ruby/
sudo gem install sqlite3-ruby -v 1.3.1
rake db:migrate
script/server
[瀏覽器 http://localhost:3000]

Share and Enjoy:
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
  • MySpace
  • Plurk
  • RSS
  • Google Buzz
  • Live
本篇發表於 Mac。將永久鏈結加入書籤。

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *