Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

bundler install bundler on linux: uninitialized constant Gem::Platform::MINGW #831

Closed
hedgehog opened this issue Nov 10, 2010 · 7 comments
Closed

Comments

@hedgehog
Copy link

$ gem list --local

*** LOCAL GEMS ***

bundler (1.0.3)
rake (0.8.7)

$ cat <<EOT >Gemfile.tmp
gem 'bundler', '~>1.0.4.pre', :path => '/usr/src/bundler', :branch => '1-0-stable'
EOT


$ bundle install --gemfile=Gemfile.tmp 
/usr/src/bundler/lib/bundler/resolver.rb:27:in `<class:Resolver>': uninitialized constant Gem::Platform::MINGW (NameError)
    from /usr/src/bundler/lib/bundler/resolver.rb:23:in `<module:Bundler>'
    from /usr/src/bundler/lib/bundler/resolver.rb:22:in `<top (required)>'
    from /home/hedge/.rvm/gems/ruby-1.9.2-p0@global/gems/bundler-1.0.3/lib/bundler/definition.rb:153:in `resolve'
    from /home/hedge/.rvm/gems/ruby-1.9.2-p0@global/gems/bundler-1.0.3/lib/bundler/definition.rb:93:in `specs'
    from /home/hedge/.rvm/gems/ruby-1.9.2-p0@global/gems/bundler-1.0.3/lib/bundler/definition.rb:88:in `resolve_remotely!'
    from /home/hedge/.rvm/gems/ruby-1.9.2-p0@global/gems/bundler-1.0.3/lib/bundler/installer.rb:35:in `run'
    from /home/hedge/.rvm/gems/ruby-1.9.2-p0@global/gems/bundler-1.0.3/lib/bundler/installer.rb:8:in `install'
    from /home/hedge/.rvm/gems/ruby-1.9.2-p0@global/gems/bundler-1.0.3/lib/bundler/cli.rb:221:in `install'
    from /home/hedge/.rvm/gems/ruby-1.9.2-p0@global/gems/bundler-1.0.3/lib/bundler/vendor/thor/task.rb:22:in `run'
    from /home/hedge/.rvm/gems/ruby-1.9.2-p0@global/gems/bundler-1.0.3/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
    from /home/hedge/.rvm/gems/ruby-1.9.2-p0@global/gems/bundler-1.0.3/lib/bundler/vendor/thor.rb:246:in `dispatch'
    from /home/hedge/.rvm/gems/ruby-1.9.2-p0@global/gems/bundler-1.0.3/lib/bundler/vendor/thor/base.rb:389:in `start'
    from /home/hedge/.rvm/gems/ruby-1.9.2-p0@global/gems/bundler-1.0.3/bin/bundle:13:in `<top (required)>'
    from /home/hedge/.rvm/gems/ruby-1.9.2-p0@global/bin/bundle:19:in `load'
    from /home/hedge/.rvm/gems/ruby-1.9.2-p0@global/bin/bundle:19:in `<main>'

$ rvm info

ruby-1.9.2-p0@fog:

  system:
    uname:       "Linux desktop 2.6.32-26-generic #46-Ubuntu SMP Tue Oct 26 16:47:18 UTC 2010 x86_64 GNU/Linux"
    bash:        "/bin/bash => GNU bash, version 4.1.5(1)-release (x86_64-pc-linux-gnu)"
    zsh:         " => not installed"

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

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

  homes:
    gem:          "/home/hedge/.rvm/gems/ruby-1.9.2-p0@fog"
    ruby:         "/home/hedge/.rvm/rubies/ruby-1.9.2-p0"

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

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

Bundler doesn't (and can't) bundle itself. Sorry.

@hedgehog
Copy link
Author

OK, the report was lodged because I was just following your (Indirect's) advice that this did in fact work:

http://groups.google.com/group/ruby-bundler/browse_thread/thread/8347c789f6faccda/d89142ccdc6dbc9a?lnk=gst&q=jonas#d89142ccdc6dbc9a

@indirect
Copy link
Member

If you read the thread you linked to, you will notice that the original poster wanted to require a specific version of Bundler for his Gemfile. He did not want to (and never tried) to bundle Bundler itself. That isn't possible, as I already said.

@hedgehog
Copy link
Author

the original poster wanted to require a specific version of Bundler for his Gemfile

Which is exactly what I wanted to do, and then I got this error. Above is the minimal reproducible case (I cut out all my app's other gems leaving just the bundler requirement of this app).

It seems the error is raised when the version of bundler cited in the Gemfile is not the version currently installed.

I've never tried to bundle bundler with bundler - I have tried to bundle my app with bundler and got this error.

@indirect
Copy link
Member

Then I misunderstood what your intent was originally -- sorry about that. I've refiled this bug so it will get fixed. Thanks.

@hedgehog
Copy link
Author

Just to be very clear, the original poster asked (their emphasis):

Question: is it possible to specify a version requirement for bundler
iteself in the gemfile...

@indirect
Copy link
Member

This appears to be fixed in 1-0-stable, as in this example: https://gist.github.com/5eb1ecddc3ec554fd8ea

The 1.0.8 release is due in the next few minutes, is it still broken there? Thanks.

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants