google-code-export / appengine-jruby

Automatically exported from code.google.com/p/appengine-jruby
0 stars 0 forks source link

appcfg.rb generate_app fails with rvm + ruby 1.9.2p0 #88

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. VirtualBox, Host:Windows 7 Professional 64bit, Guest: Ubuntu 10.10 Desktop 
32bit
2. $ sudo apt-get install ruby git-core curl zlib1g-dev libssl-dev 
libreadline-dev libc6-dev autoconf virtualbox-ose-guest-x11
3. $ bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
4. edit ~/.bashrc according to instructions of rvm installer
4.1. eliminate line including 'return'
4.2. add line '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source 
"$HOME/.rvm/scripts/rvm"'
5. $ rvm install 1.9.2
6. $ rvm use 1.9.2 --default
7. logout and re-login
8. $ gem install google-appengine
9. $ cd ~/tmp; appcfg.rb generate_app helloworld

What is the expected output? What do you see instead?
=> Generating gemfile
/home/hytdsh/.rvm/gems/ruby-1.9.2-p0/gems/appengine-tools-0.0.16/lib/appengine-t
ools/gem_bundler.rb:63: warning: already initialized constant RUBY_ENGINE
=> Bundling gems
ERROR:  While executing gem ... (RuntimeError)
    can't add a new key into hash during iteration

What version of the product are you using? On what operating system?
VirtualBox 3.2.8
Host: Windows 7 Professional 64bit
Guest: Ubuntu 10.10 Desktop 32bit

rvm info:
ruby-1.9.2-p0:

  system:
    uname:       "Linux testbed 2.6.35-22-generic #34-Ubuntu SMP Sun Oct 10 09:24:00 UTC 2010 i686 GNU/Linux"
    bash:        "/bin/bash => GNU bash, version 4.1.5(1)-release (i686-pc-linux-gnu)"
    zsh:         " => not installed"

  rvm:
    version:      "rvm 1.0.14 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/]"

  ruby:
    interpreter:  "ruby"
    version:      "1.9.2p0"
    date:         "2010-08-18"
    platform:     "i686-linux"
    patchlevel:   "2010-08-18 revision 29036"
    full_version: "ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux]"

  homes:
    gem:          "/home/hytdsh/.rvm/gems/ruby-1.9.2-p0"
    ruby:         "/home/hytdsh/.rvm/rubies/ruby-1.9.2-p0"

  binaries:
    ruby:         "/home/hytdsh/.rvm/rubies/ruby-1.9.2-p0/bin/ruby"
    irb:          "/home/hytdsh/.rvm/rubies/ruby-1.9.2-p0/bin/irb"
    gem:          "/home/hytdsh/.rvm/rubies/ruby-1.9.2-p0/bin/gem"
    rake:         "/home/hytdsh/.rvm/gems/ruby-1.9.2-p0/bin/rake"

  environment:
    PATH:         "/home/hytdsh/.rvm/gems/ruby-1.9.2-p0/bin:/home/hytdsh/.rvm/gems/ruby-1.9.2-p0@global/bin:/home/hytdsh/.rvm/rubies/ruby-1.9.2-p0/bin:/home/hytdsh/.rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
    GEM_HOME:     "/home/hytdsh/.rvm/gems/ruby-1.9.2-p0"
    GEM_PATH:     "/home/hytdsh/.rvm/gems/ruby-1.9.2-p0:/home/hytdsh/.rvm/gems/ruby-1.9.2-p0@global"
    BUNDLE_PATH:  "/home/hytdsh/.rvm/gems/ruby-1.9.2-p0"
    MY_RUBY_HOME: "/home/hytdsh/.rvm/rubies/ruby-1.9.2-p0"
    IRBRC:        "/home/hytdsh/.rvm/rubies/ruby-1.9.2-p0/.irbrc"
    RUBYOPT:      ""
    gemset:       ""

Please provide any additional information below.
$ ls -lR ~/tmp/helloworld
/home/hytdsh/tmp/helloworld:
total 8
-rw-r--r-- 1 hytdsh hytdsh  163 2010-10-14 15:54 Gemfile
drwxr-xr-x 4 hytdsh hytdsh 4096 2010-10-14 15:54 WEB-INF

/home/hytdsh/tmp/helloworld/WEB-INF:
total 8
drwxr-xr-x 2 hytdsh hytdsh 4096 2010-10-14 15:54 appengine-generated
drwxr-xr-x 2 hytdsh hytdsh 4096 2010-10-14 15:54 lib

/home/hytdsh/tmp/helloworld/WEB-INF/appengine-generated:
total 0

/home/hytdsh/tmp/helloworld/WEB-INF/lib:
total 0

$ cat ~/tmp/helloworld/Gemfile
# Critical default settings:
disable_system_gems
disable_rubygems
bundle_path ".gems/bundler_gems"

# List gems to bundle here:
gem 'appengine-rack', '0.0.11.pre'

[End Of Report]

Original issue reported on code.google.com by hyt...@gmail.com on 14 Oct 2010 at 7:03

GoogleCodeExporter commented 9 years ago
let me correct reproducing steps

2. add deb packages
2.1. $ sudo add-apt-repository "deb http://archive.canonical.com/ maverick 
partner"
2.2. $ sudo apt-get update
2.3. $ sudo apt-get install ruby git-core curl zlib1g-dev libssl-dev 
libreadline-dev libc6-dev autoconf virtualbox-ose-guest-x11 sun-java6-jdk

and
$ java -version
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) Client VM (build 17.0-b16, mixed mode, sharing)

Original comment by hyt...@gmail.com on 14 Oct 2010 at 7:11