Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

gem: undefined method `[]=' on nil:NilClass #1092

Closed
carlhoerberg opened this Issue Aug 5, 2011 · 5 comments

Comments

Projects
None yet
5 participants

just installed rbx-2.0.0pre using rvm but "gem" crashes with any argument:

carl@Carls-MacBook-Air:vetcloud (master)$ ruby -v
rubinius 2.0.0dev (1.8.7 1e0c67bb yyyy-mm-dd JI) [x86_64-apple-darwin11.0.1]
carl@Carls-MacBook-Air:vetcloud (master)$ gem -v
An exception occurred running /Users/carl/.rvm/rubies/rbx-2.0.0pre/lib/bin/gem.rb
    undefined method `[]=' on nil:NilClass. (NoMethodError)

Backtrace:
  Kernel(NilClass)#[]= (method_missing) at kernel/delta/kernel.rb:79
                       { } in Gem.Gem at /Users/carl/.rvm/rubies/rbx-2.0.0pre
                                         /lib/rubygems.rb:163
                          Hash#default at kernel/common/hash.rb:250
                               Hash#[] at kernel/common/hash.rb:199
                  Gem::Platform.local at /Users/carl/.rvm/rubies/rbx-2.0.0pre
                                         /lib/rubygems/platform.rb:15
                    Object#__script__ at /Users/carl/.rvm/rubies/rbx-2.0.0pre
                                         /lib/rubygems/defaults/rbx.rb:2
          Rubinius::CodeLoader.require at kernel/common/codeloader.rb:152
                Kernel(Object)#require at kernel/common/kernel.rb:770
                    Object#__script__ at /Users/carl/.rvm/rubies/rbx-2.0.0pre
                                         /lib/rubygems.rb:1241
          Rubinius::CodeLoader.require at kernel/common/codeloader.rb:152
                Kernel(Object)#require at kernel/common/kernel.rb:770
                    Object#__script__ at /Users/carl/.rvm/rubies/rbx-2.0.0pre
                                         /lib/bin/gem.rb:8
      Rubinius::CodeLoader#load_script at kernel/delta/codeloader.rb:65
      Rubinius::CodeLoader.load_script at kernel/delta/codeloader.rb:107
               Rubinius::Loader#script at kernel/loader.rb:602
                 Rubinius::Loader#main at kernel/loader.rb:748
Member

IPGlider commented Aug 5, 2011

Try this:

rvm install 1.8.7
rvm use 1.8.7
rvm install rbx-2.0.0pre

I have the same problem if I install with 1.9.2-290p.

thanks! worked out fine!

On Fri, Aug 5, 2011 at 12:48, IPGlider
reply@reply.github.com
wrote:

Try this:

rvm install 1.8.7
rvm use 1.8.7
rvm install rbx-2.0.0pre

I have the same problem if I install with 1.9.2-290p.

Reply to this email directly or view it on GitHub:
#1092 (comment)

@jc00ke jc00ke closed this Aug 5, 2011

@jc00ke jc00ke reopened this Aug 6, 2011

Owner

jc00ke commented Aug 6, 2011

According to @brixen in IRC looks like it should build with 1.9.2.

Contributor

postmodern commented Aug 6, 2011

I just built 2.0.0pre manually using 1.9.2. Looks like an RVM issue.

Owner

brixen commented Sep 19, 2011

rvm install rbx; rvm use rbx; gem -v works fine here. Please reopen if you are still having trouble with this.

@brixen brixen closed this Sep 19, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment