我一直試圖讓應用程序引擎sdk無法正常工作。無法讓Jruby的google-appengine正常工作
我清空一個寶石,並通過執行
sudo gem install google-appengine
我有以下寶石安裝
[[email protected] GAE]$ sudo gem list
Password:
*** LOCAL GEMS ***
appengine-apis (0.0.24)
appengine-rack (0.0.13)
appengine-sdk (1.4.3)
appengine-tools (0.0.17)
bundler08 (0.8.5)
google-appengine (0.0.21)
jruby-jars (1.5.6)
jruby-rack (1.0.4)
rack (1.3.5)
rubyzip (0.9.4)
[[email protected] GAE]$
並且如this教程(http://code.google.com/p/appengine-jruby/wiki/GettingStarted)我使用CRuby 提到安裝google-appengine
寶石而不是Jruby
[[email protected] GAE]$ ruby -v
ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux]
我在第一步驟本身
[[email protected] GAE]$ appcfg.rb generate_app hello
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead.
=> Generating gemfile
/usr/lib/ruby/gems/1.9.1/gems/appengine-tools-0.0.17/lib/appengine-tools/gem_bundler.rb:63: warning: already initialized constant RUBY_ENGINE
=> Bundling gems
ERROR: While executing gem ... (RuntimeError)
Unknown command bundle
[[email protected] GAE]$
安裝bundler
(任一版本1.0.21或0.8)拋出相同的錯誤得到一個錯誤。
解決此問題的任何建議?
PS:我使用VirtualBox虛擬
「我正在使用CRuby而不是Jruby」 - 您爲什麼期望它能正常工作?您只能在App Engine上使用Jruby,因此庫不太可能在CRuby上進行測試。 –
如果您閱讀http://code.google.com/p/appengine-jruby/wiki/GettingStarted,明確提到使用標準ruby(Cruby)而不是Jruby,這就是爲什麼我實際使用它,我嘗試過與jruby和它沒有工作 – Gautam