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

method_missing': undefined method `user_home' for Gem:Module #518

Closed
wildfalcon opened this issue Jul 30, 2010 · 12 comments
Closed

method_missing': undefined method `user_home' for Gem:Module #518

wildfalcon opened this issue Jul 30, 2010 · 12 comments

Comments

@wildfalcon
Copy link

This is from a ubuntu server,
rubygems 1.3.7
bundler 1.0.0.rc.2

deploy@184:$ uname -a
Linux 184.106.206.118 2.6.33.5-rscloud #2 SMP Thu Jun 10 15:26:23 UTC 2010 x86_64 GNU/Linux
deploy@184:
$ gem -v
1.3.7
deploy@184:$ bundle -v
Bundler version 1.0.0.rc.2
deploy@184:
$ mkdir temp
deploy@184:$ cd temp/
deploy@184:
/temp$ bundle init
Writing new Gemfile to /home/deploy/temp/Gemfile
deploy@184:~/temp$ bundle install
internal:gem_prelude:344:in method_missing': undefined methoduser_home' for Gem:Module (NoMethodError)
from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.0.rc.2/lib/bundler/settings.rb:105:in global_config_file' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.0.rc.2/lib/bundler/settings.rb:6:ininitialize'
from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.0.rc.2/lib/bundler.rb:172:in new' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.0.rc.2/lib/bundler.rb:172:insettings'
from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.0.rc.2/lib/bundler/cli.rb:156:in install' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.0.rc.2/lib/bundler/vendor/thor/task.rb:22:inrun'
from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.0.rc.2/lib/bundler/vendor/thor/invocation.rb:109:in block in invoke' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.0.rc.2/lib/bundler/vendor/thor/invocation.rb:116:incall'
from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.0.rc.2/lib/bundler/vendor/thor/invocation.rb:116:in invoke' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.0.rc.2/lib/bundler/vendor/thor.rb:161:inblock in start'
from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.0.rc.2/lib/bundler/vendor/thor/base.rb:379:in start' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.0.rc.2/lib/bundler/vendor/thor.rb:140:instart'
from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.0.rc.2/bin/bundle:13:in <top (required)>' from /usr/bin/bundle:19:inload'
from /usr/bin/bundle:19:in `

'

@wycats
Copy link
Contributor

wycats commented Aug 2, 2010

What version of Ruby are you running?

@wildfalcon
Copy link
Author

Ruby 1.9.1

@wycats
Copy link
Contributor

wycats commented Aug 4, 2010

I can't reproduce this in Ruby 1.9.1. Can you print the full output of ruby -v?

I would also add that Ruby 1.9.1 has pretty anomalous behavior in a number of important cases, and isn't supported by Rails 3. I'd use the latest RC of 1.9.2 rather than 1.9.1.

@lucaspiller
Copy link

I'm also getting this issue. Here are my versions:

$ ruby -v
ruby 1.9.1p378 (2010-01-10 revision 26273) [x86_64-linux]
$ gem -v
1.3.6
$ gem list | grep bundler
bundler (1.0.0)

@leishao
Copy link

leishao commented Sep 3, 2010

maybe rails3 is suite for ruby1.9.2
I have the same problem
And I Operating system is ubuntu10.04

@insane-dreamer
Copy link

Same problem, running ruby 1.9.1p430 on freeBSD

@wildfalcon
Copy link
Author

I have since switched to ruby 1.9.2 and the problem does not exist there.

I'm considering this my mistake for trying to use 1.9.1

@insane-dreamer
Copy link

same here; installed ruby 1.9.2 from source on freebsd (since only 1.9.1 is available in ports), and the problem went away.
It might be good to mention in the documentation that Bundler will only work on 1.9.2+.

@paranormal
Copy link

For freebsd and ruby 1.9.1 use: http://pastebin.com/zzVgnfAm

@lennartkoopmann
Copy link

same here:

Linux sundaysister 2.6.32-24-generic #43-Ubuntu SMP Thu Sep 16 14:58:24 UTC 2010 x86_64 GNU/Linux

lennart ~$ ruby -v
ruby 1.9.1p378 (2010-01-10 revision 26273) [x86_64-linux]

use paranormal's patch which works for me. (thx!)

@therealcisse
Copy link

same problem here, ubuntu 10.04,

used paranormal's patch, also thanks.

@turboladen
Copy link

Same issue here. Ubuntu 1.0.04.1 LTS. bundler 1.0.10

hudson@systools-01:~/fsroot/workspace/pxxx_p_RubyGem/trunk$ bundle
<internal:gem_prelude>:344:in `method_missing': undefined method `user_home' for Gem:Module (NoMethodError)
    from /usr/local/lib/site_ruby/1.9.1/rubygems.rb:418:in `config_file'
    from /usr/local/lib/site_ruby/1.9.1/rubygems/config_file.rb:243:in `config_file_name'
    from /usr/local/lib/site_ruby/1.9.1/rubygems/config_file.rb:174:in `initialize'
    from /usr/local/lib/site_ruby/1.9.1/rubygems.rb:425:in `new'
    from /usr/local/lib/site_ruby/1.9.1/rubygems.rb:425:in `configuration'
    from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/cli.rb:8:in `<top (required)>'
    from /usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:29:in `require'
    from /usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:29:in `require'
    from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/bin/bundle:10:in `<top (required)>'
    from /usr/bin/bundle:19:in `load'
    from /usr/bin/bundle:19:in `<main>'


RubyGems Environment:
  - RUBYGEMS VERSION: 1.5.2
  - RUBY VERSION: 1.9.1 (2010-01-10 patchlevel 378) [i486-linux]
  - INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.9.1
  - RUBY EXECUTABLE: /usr/bin/ruby1.9.1
  - EXECUTABLE DIRECTORY: /usr/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-linux
  - GEM PATHS:
     - /usr/lib/ruby/gems/1.9.1
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
     - :gempath => ["/usr/lib/ruby/gems/1.9.1"]
     - :sources => ["http://rubygems.org/"]
     - "gempath" => ["/usr/lib/ruby/gems/1.9.1"]
  - REMOTE SOURCES:
     - http://rubygems.org/

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

9 participants