is not checked out... bundle install does NOT fix help!

Ruby on-RailsRubyGitGem

Ruby on-Rails Problem Overview


https://github.com/intridea/omniauth.git (at master) is not checked out. Please run `bundle install` (Bundler::GitError)

So what do I do? bundle install works on development, but when I push and deploy to my production server. I get this error, even after running bundle install on my production server.

Ruby on-Rails Solutions


Solution 1 - Ruby on-Rails

You're probably running Passenger. This is the issue with some solutions - http://code.google.com/p/phusion-passenger/issues/detail?id=505

Try running bundle install --deployment

Solution 2 - Ruby on-Rails

This error can be related to the spring gem. Regenerating spring binstubs worked for me.

bundle exec spring binstub --all

https://github.com/rails/spring/issues/387

Solution 3 - Ruby on-Rails

for the guys that stuck with "bundle & git repo " problems.

1. $ bundle pack
2. $ bundle install --path vendor/cache

more details, please refer to https://stackoverflow.com/a/5268534/445908

Solution 4 - Ruby on-Rails

For me it was just a matter of adding this to gemfile:

source 'http://gems.github.com'

Solution 5 - Ruby on-Rails

When your computer never restarts, Spring might be the problem. Spring was running for 350 hours and caused caching the outdated TEST environment. I had this problem in my cucumber test environment in Rubymine. Strange this was that from (mac) the command prompt there was no problem.

spring status
spring stop

and voila! It all worked again.

Solution 6 - Ruby on-Rails

Ran into this problem after upgrading to ruby 2.7.0

Looks like maybe there has been changes to deprecate the use of the business company focused:github => to the actual software platform focused :git =>. Maybe better for easier code logic maintainability.

Change the following:

gem 'devise', :github => 'plataformatec/devise'  

to the following:

gem 'devise', :git => 'git://github.com/plataformatec/devise'

An alternative is you may still reference :github as your git_source at the top of your Gemfile and just reference to the Gems as normal like so:

source 'https://rubygems.org'                                                                                                                             
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
...
gem 'devise'

Solution 7 - Ruby on-Rails

If you run bundle install and then on attempt to run anything you see "... github.com ... is not yet checked out. Run bundle install first."

  • that means you need to use bundle exec before your command, e.g.:

    bundle exec rails s

Solution 8 - Ruby on-Rails

Installing gem locally in project directory fix it for me.

 $ bundle install --path vendor/bundle

Solution 9 - Ruby on-Rails

This solution

$ bundle install --path vendor/bundle

has fixed my issue with running multiple rails app via foreman.

Note: Don't forget to execute rbenv rehash after if you are using rbenv.
And add /vendor/bundle in your .gitignore if not yet added.

Solution 10 - Ruby on-Rails

My problem was that i had no access to github

try ssh -vT [email protected] and see if you get

> [email protected]: Permission denied (publickey).

Then see https://help.github.com/articles/error-permission-denied-publickey/

Solution 11 - Ruby on-Rails

For anyone here in 2021, the accepted answer is outdated as --deployment flag is deprecated.

Use this instead:

bundle config set --local deployment 'true'

Solution 12 - Ruby on-Rails

It is a permission error. The following worked

Environment : RVM with Apache

RVM user:group : rvm:rvm

Apache user:group : apache:apache

You need to add apache user to RVM group

usermod -a -G rvm apache

Solution 13 - Ruby on-Rails

What finally helped me once and forever:

  1. Reinstalling everything as Galen suggested (all the steps from https://github.com/carlhuda/bundler/blob/master/ISSUES.md)

  2. Using bundle instead of rvmsudo bundle

Solution 14 - Ruby on-Rails

Update your Gemfile as follows;

gem 'activeadmin', github: 'activeadmin/active_admin', branch: '0-6-stable'

and then,

bundle install

Iif still error occurs (because of you have tried 'bundle install --deployment', then try running)

bundle install --no-deployment

Solution 15 - Ruby on-Rails

Restarting bash session helped for me

Solution 16 - Ruby on-Rails

Another solution, that helped me when I was getting same issue while installing private gem from my Github repo, in Docker (my gems are in volume /gems):

# Add known host 
RUN mkdir -p -m 0600 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts

RUN bundle config set path /gems # this fixes issue with private repos DON'T USE ENV BUNDLE_PATH /gems
RUN --mount=type=ssh bundle install

To forward SSH, build using this command:

docker build --ssh default .

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionfivetwentysixView Question on Stackoverflow
Solution 1 - Ruby on-RailsDogbertView Answer on Stackoverflow
Solution 2 - Ruby on-RailsjveneziaView Answer on Stackoverflow
Solution 3 - Ruby on-RailsSiweiView Answer on Stackoverflow
Solution 4 - Ruby on-RailsAndres CalleView Answer on Stackoverflow
Solution 5 - Ruby on-RailsHugo LogmansView Answer on Stackoverflow
Solution 6 - Ruby on-Railsearth2jasonView Answer on Stackoverflow
Solution 7 - Ruby on-RailsDaniel GarmoshkaView Answer on Stackoverflow
Solution 8 - Ruby on-RailsKen Ratanachai S.View Answer on Stackoverflow
Solution 9 - Ruby on-RailsBMA88View Answer on Stackoverflow
Solution 10 - Ruby on-RailsmontrealmikeView Answer on Stackoverflow
Solution 11 - Ruby on-RailsDivins MathewView Answer on Stackoverflow
Solution 12 - Ruby on-RailsanbiniyarView Answer on Stackoverflow
Solution 13 - Ruby on-RailsGreg FuntusovView Answer on Stackoverflow
Solution 14 - Ruby on-RailsBreen hoView Answer on Stackoverflow
Solution 15 - Ruby on-RailsurmurmurView Answer on Stackoverflow
Solution 16 - Ruby on-RailsTomasz WójcikView Answer on Stackoverflow