Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
<internal:gem_prelude>:344:in `method_missing': undefined method `user_home' for Gem:Module (NoMethodError) #442
I get this when running any bundle command. The culprit seems to be in
If I comment out the following lines
then everything works fine. This is with ruby 1.9.1
I also ran into this problem around July 27 with Bundler 1.0.0.rc.1 on Ruby 1.9.1-p376 (and Chef 0.9.6) and gave up.
Since Rails 3.0.0.rc2 just came out, I tried again with Bundler 1.0.0.rc.6, and the user_home problem does not occur for either Ruby 1.9.1-p376 or Ruby 1.9.2-p0 (and Chef 0.9.6 and 0.9.8). Yay!
My use case is on an Ubuntu 10.04 EC2 instance, logged in as ubuntu, running sudo chef-solo on a recipe that runs bundle install as the user my app runs as.
When logged in as the ubuntu user, if i do a sudo -s and then echo $HOME, the value is /home/ubuntu, instead of /root, so maybe that's it. Sudo -i sets home correctly.
I wonder how this got fixed.