Ruby-on-rails 未检出... bundle install 不修复帮助!
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6648870/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
is not checked out... bundle install does NOT fix help!
提问by fivetwentysix
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.
那我该怎么办?bundle install 适用于开发,但是当我推送并部署到我的生产服务器时。即使在我的生产服务器上运行 bundle install 后,我也会收到此错误。
回答by Dogbert
You're probably running Passenger. This is the issue with some solutions - http://code.google.com/p/phusion-passenger/issues/detail?id=505
您可能正在运行Passenger。这是一些解决方案的问题 - http://code.google.com/p/phusion-passenger/issues/detail?id=505
Try running bundle install --deployment
尝试跑步 bundle install --deployment
回答by jvenezia
This error can be related to the spring gem. Regenerating spring binstubs worked for me.
此错误可能与 spring gem 相关。再生 spring binstubs 对我有用。
bundle exec spring binstub --all
bundle exec spring binstub --all
回答by u445908
for the guys that stuck with "bundle & git repo " problems.
对于那些坚持“bundle & git repo”问题的人。
1. $ bundle pack
2. $ bundle install --path vendor/cache
more details, please refer to https://stackoverflow.com/a/5268534/445908
回答by Andres Calle
For me it was just a matter of adding this to gemfile:
对我来说,这只是将它添加到 gemfile 的问题:
source 'http://gems.github.com'
回答by Hugo Logmans
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 可能是问题所在。Spring 运行了 350 小时并导致缓存过时的 TEST 环境。我在 Rubymine 的 Cucumber 测试环境中遇到了这个问题。奇怪的是,从(mac)命令提示符没有问题。
spring status
spring stop
and voila! It all worked again.
瞧!这一切又奏效了。
回答by Daniel Garmoshka
If you run bundle installand then on attempt to run anything you see "... github.com ... is not yet checked out. Run bundle installfirst."
- that means you need to use bundle execbefore your command, e.g.:
如果您运行bundle install然后尝试运行任何内容,您会看到“... github.com ... 尚未签出。bundle install请先运行。” - 这意味着您需要bundle exec在您的命令之前使用,例如:
bundle exec rails s
回答by montrealmike
My problem was that i had no access to github
我的问题是我无法访问 github
try ssh -vT [email protected]and see if you get
试试看ssh -vT [email protected]你是否得到
[email protected]: Permission denied (publickey).
[email protected]:权限被拒绝(公钥)。
Then see https://help.github.com/articles/error-permission-denied-publickey/
然后看https://help.github.com/articles/error-permission-denied-publickey/
回答by earth2jason
Ran into this problem after upgrading to ruby 2.7.0
升级到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.
看起来可能已经发生了一些变化,以弃用商业公司专注:github =>于实际软件平台的使用:git =>。对于更容易的代码逻辑可维护性可能更好。
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:
另一种选择是你仍然可以在你的 Gemfile 顶部引用 :github 作为你的 git_source 并且像平常一样引用 Gems ,如下所示:
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
...
gem 'devise'
回答by Ken Ratanachai S.
Installing gem locally in project directory fix it for me.
在项目目录中本地安装 gem 为我修复它。
$ bundle install --path vendor/bundle
回答by anbiniyar
It is a permission error. The following worked
这是一个权限错误。以下工作
Environment: RVM with Apache
环境:带有 Apache 的 RVM
RVM user:group: rvm:rvm
RVM 用户:组:rvm:rvm
Apache user:group: apache:apache
阿帕奇用户:组:阿帕奇:阿帕奇
You need to add apache user to RVM group
您需要将 apache 用户添加到 RVM 组
usermod -a -G rvm apache

