[b]Windows + e texteditor + cgywin + console2[/b]
a) 安裝e texteditor
[url]http://www.e-texteditor.com/download/e_beta_setup.exe[/url]
安裝
注意安裝途中可能報錯,那是個别檔案不符合windows命名規則的原因,不用管,ignore掉然後繼續就好了,影響不大。
b) 安裝cgywin
初次運作e texteditor就會提示安裝cgywin,直接選automatic install就好了,e texteditor會自動下載下傳cgywin
c) 安裝console2
下載下傳console2
[url]http://sourceforge.net/projects/console/[/url]
解壓即可
配置console和cgywin
選add tab, 在shell裡面輸入:
c:\cygwin\bin\bash –login –i
将該tab移到最上方,以後每次啟動console2都會自動啟動該shell
d) 安裝RubyGem
Download RubyGem code
[url]http://rubyforge.org/frs/?group_id=126[/url]
Untar
tar –xzvf rubygems-1.1.0.tgz
Setup
Sudo ruby setup.rb
驗證安裝
gem –v
which gem
如果出現錯誤,使用:
unset RUBYOPT
e) 安裝rails
安裝
sudo gem update –system
sudo gem install rails –include-dependencies
驗證安裝
rails -v
f) 測試安裝
rails blog
cd blog
e .
你将會看到e texteditor 自動啟動并将目前目錄的項目打開。
[color=blue]轉自[/color] [url]http://www.tzhang.com/blog/tag/textmate[/url]