到目前為止,利用業餘時間在Linux下搭建了一個ROR的開發平臺:

SuseLinux+ROR+mysql+WEBrick +IDE(VimMate)
也搭建了將來的執行環境:
SuseLInux+ROR+Mysql+Lighttpd-fcgi

VimMate號稱是Linux下的TextMate,下面是安裝步驟:

  • Make sure Vim is installed and compiled
    with the graphical interface. Try running gvim to see if it works.
    Only Vim version 7.0 has been tested.你必須安裝gvim,執行gvim看看會不會彈出VI的GUI。
  • Make sure Ruby version 1.8 or more
    is installed. Try running ruby —version in a terminal.當然你得把Ruby先安裝了,要不不能執行setup.rb
  • Install the Ruby bindings to GTK and GNOME (for the VTE terminal). See Ruby-GNOME2 website. Only
    Ruby-GNOME2 version 0.15 has been tested. You don‘t need VTE: if
    it‘s not installed, VimMate
    will not have terminals but will run anyway.自己看吧,需要去下載兩個包ruby-gnome2-all-0.16.0和ruby-gtk2-0.16.0
  • If you want to use the Subversion integration feature, you must install the
    subversion bindings for Ruby. Check if it‘s available for your OS or
    get the sources from Subversion`s
    website
    and compile them.去Subversion下個版本控制工具。把依賴包也下載,解壓後複製到subversion目錄中,否則會報錯。裝好是沒有DB的版本(如果你的系統沒有DB的話),下個DB安裝以後就好了,重新裝一遍Subversio。最終的安裝路徑是/usr/local/include
  • Download the latest VimMate on VimMate`s homepage.去下載VimMate,然後安裝。
  • You now have 3 choices to install VimMate: manually, with Ruby Gems or
    with setup.rb:
    • With Ruby Gems
    • With setup.rb
      • Simply run ruby setup.rb . Run ruby setup.rb —help
        for more information.
    • Manually
      • Copy the file bin/vimmate and the directory
        lib/vimmatelib to a directory somewhere in your path.
      • Make sure vimmate is executable: chmod u+x vimmate

      選擇安裝方式,我用setup.rb

  • cd to a directory where your project is. (Watch out for directories with
    too many files. See Limitations below.)
  • Run vimmate在文字模式下輸入vimmate就會啟動VimMate

Run vimmate —help for more information.

輸入vimate  -help用-help來看更多的資訊。

然後你可以到[url]http://www.vim.org/[/url]選擇你要安裝語言的開發外掛。