I have been trying all day to get app-engine sdk to work nothing has really shaped up .
I emptied a gemset and installed google-appengine gem by executing
sudo gem install google-appengine
I have the following gems installed
[gdev@vbox-gdev 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)
[gdev@vbox-gdev GAE]$
and as mentioned in this tutorial (http://code.google.com/p/appengine-jruby/wiki/GettingStarted)
I am using CRuby instead of Jruby
[gdev@vbox-gdev GAE]$ ruby -v
ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux]
I am getting an error in the first step itself
[gdev@vbox-gdev 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
[gdev@vbox-gdev GAE]$
Installing bundler(either version 1.0.21 or 0.8) throws the same error .
Any suggestions on solving this ?
PS: I am using arch linux on a virtualbox
First of all you should stick to Ruby 1.8.7. 1.9.x never really took off on appengine-jruby, although it’s possible. Moreover you should use Rubygems 1.3.7.
My local gems are these:
But guess what, except for the google-appengine gem those aren’t really important. Much much more important is this:
ls .gems/bundler_gems/jruby/1.8/gems:That at least will give you an easy start. (You can configure the version in the Gemfile)
By the way, good that you use Linux.