我一直试图让应用程序引擎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