2012年5月23日 星期三

Ruby Android = Ruboto 安裝/問題紀錄



要安裝Ruboto (https://github.com/ruboto/ruboto/)之前,要先安裝JRuby  (http://jruby.org/)

裝好JRuby 後,將目錄切換到您所安裝的JRuby目錄

進行安裝Ruboto
  gem install ruboto

-----------------------

Getting Started

Before you use Ruboto, you should do the following things:
  • Install the JDK if it's not on your system already
  • Install jruby if you don't already have it. JRuby has a very easy install process, or you can use rvm
  • Install the Android SDK
  • Add the sdk's tools/ directory to your $PATH (問題1 )
  • Generate an Emulator image unless you want to develop using your phone
問題1: 設定Android SDK路徑於 $PATH

範例:


測試:
  執行 ruboto
 
 找不到檔案及目錄???  
$PATH都加上SDK路徑了..怎麼還是提示錯誤!!

檢查了Ruboto源碼
  C:\jruby-1.7.0.preview1\lib\ruby\gems\shared\gems\ruboto-0.6.0\lib\ruboto\sdk_versions.rb 

編輯檔案..把 "/tools" 刪掉、並存檔。
再測試執行 ruboto


Ruboto開發環境..設定完成

至於..怎麼開發Android ..
請參考 
(簡體) http://www.ibm.com/developerworks/cn/web/wa-ruby/
(英文) http://www.ibm.com/developerworks/web/library/wa-ruby/index.html

沒有留言: