- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在使用 bundler 来处理多个项目的 gem。
当我出于某种原因运行 bundle install
时,它会从我之前运行过的其他 Gemfile 中吐出错误,但与我正在 bundle 的文件夹和 Gemfile 无关。
知道是什么原因造成的吗?
MacBook-Pro:test mylo$ bundle install
Using mini_portile (0.5.2)
Using nokogiri (1.6.1)
Using rack (1.5.2)
Using rack-protection (1.5.2)
Using tilt (1.4.1)
Using sinatra (1.4.4)
Using bundler (1.5.2)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled
gem is installed. rbenv: version `.DS_Store' is not installed
/Users/mylo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/bundler-1.5./lib/bundler/resolver.rb:134:in
`block in resolve': Could not find gem 'dii_eris ( = 2.0.3) ruby',
which is required by gem 'dii_pluto ( = 0) ruby', in any of the
sources. (Bundler::VersionConflict) from
/Users/mylo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/safe_catch.rb:32:in
`catch' from
/Users/mylo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/bundler-1.5./lib/bundler/safe_catch.rb:32:in
`safe_catch' from
/Users/mylo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/bundler-1.5./lib/bundler/resolver.rb:132:in
`resolve' from
/Users/mylo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/definition.rb:203:in
`resolve' from
/Users/mylo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/definition.rb:133:in
`specs' from
/Users/mylo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/environment.rb:22:in
`specs' from
/Users/mylo/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:115:in
`gemspecs' from
/Users/mylo/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:204:in
`block (3 levels) in rehash' from
/Users/mylo/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:203:in
`open' from
/Users/mylo/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:203:in
`open' from
/Users/mylo/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:203:in
`block (2 levels) in rehash' from
/Users/mylo/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:186:in
`each' from
/Users/mylo/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:186:in
`block in rehash' from
/Users/mylo/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:185:in
`open' from
/Users/mylo/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:185:in
`open' from
/Users/mylo/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:185:in
`rehash' from
/Users/mylo/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:462:in
`<main '
/Users/mylo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler.rb:387:in
`rescue in eval_gemspec': There was a NameError while loading
codeproject.gemspec: (Bundler::GemspecError) uninitialized constant
Dii::Gemini from
/Users/mylo/gitcode/libs/codeproject/codeproject.gemspec:7:in `block
in <main ' from
/Users/mylo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler.rb:376:in
`eval_gemspec' from
/Users/mylo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler.rb:347:in
`block in load_gemspec_uncached' from
/Users/mylo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/shared_helpers.rb:52:in
`chdir' from
/Users/mylo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/shared_helpers.rb:52:in
`chdir' from
/Users/mylo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler.rb:342:in
`load_gemspec_uncached' from
/Users/mylo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler.rb:332:in
`load_gemspec' from
/Users/mylo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/dsl.rb:51:in
`gemspec' from /Users/mylo/gitcode/libs/codeproject/Gemfile:4:in
`eval_gemfile' from
/Users/mylo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/dsl.rb:30:in
`instance_eval' from
/Users/mylo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/dsl.rb:30:in
`eval_gemfile' from
/Users/mylo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/dsl.rb:9:in
`evaluate' from
/Users/mylo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/definition.rb:26:in
`build' from
/Users/mylo/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:95:in
`gemspecs' from
/Users/mylo/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:204:in
`block (3 levels) in rehash' from
/Users/mylo/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:203:in
`open' from
/Users/mylo/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:203:in
`open' from
/Users/mylo/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:203:in
`block (2 levels) in rehash' from
/Users/mylo/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:186:in
`each' from
/Users/mylo/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:186:in
`block in rehash' from
/Users/mylo/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:185:in
`open' from
/Users/mylo/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:185:in
`open' from
/Users/mylo/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:185:in
`rehash' from
/Users/mylo/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:462:in
`<main '
最佳答案
我有一种预感,它可能与 rbenv-bundler 有关,如 this issue 中所示.但是检查 gem list rbenv-bundler
并没有发现坏人。直到我尝试了 brew list | grep rbenv
如描述的那样 here .
我只是做了brew uninstall rbenv-bundler
,上面描述的所有问题似乎都消失了!此外,您转储中的 rbenv: version `.DS_Store' is not installed
似乎已经消失了。
关于ruby - Bundler 吐出来自其他项目和 Gemfiles 的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21467278/
我开始使用一个新项目,它基于 ruby 1.8.7,我使用 rvm 来管理我的 ruby 版本,我已经安装了 1.8.7 和 1.9.2。 重要的是当我这样做的时候: rvm use 1.8.
ERROR: paperclip is not part of the bundle. Add it to Gemfile. (Gem::LoadError) 添加paperclip bundle 列
如何强制 Bundler 重新安装 gemfile 中的所有 gem?或者,如何强制 Bundler 卸载它安装的所有 gem,以便我可以自己重新安装它们? 我看到了rails bundle clea
如果我更改 Gemfile 中所需的 bundler 版本,然后键入 bundle,我得到 Bundler could not find compatible versions for gem "bu
我在存储库中有一个缓存的 gem。 gem 是使用 bundle package --all 保存的。命令。 在未安装 Bundler 但确实有此 repo 副本的新建机器 (centos) 上,我想
我正在用 Jekyll 制作 GitHub 博客页面。我失败了很多次,只是 fork 了一个新的,然后按照存储库上的自述文件进行操作。 它是 https://github.com/jancziziko
我遇到了 bundle 的以下错误 Bundler could not find compatible versions for gem "bundler": In Gemfile: bundler
这里是 Ruby 和 Rails 的完全新手...过去尝试过一些教程,但仅此而已。我正在尝试学习“Ruby on Rails 3 教程”一书,但遇到了障碍,在此处和 Google 上搜索后我无法找到任
bundle有什么区别& bundler命令? bundle有什么区别& bundle install ? 如果没有区别,为什么有多个命令做同样的事情? 最佳答案 可执行文件 bundle & bun
Bundler 1.1.1 似乎与 rake 不兼容。 我不知道发生了什么,我正在尝试安装 webistrano,当我运行以下命令时 RAILS_ENV=production rake db:migr
标题就是问题,这里是提示它的上下文。 gem 文件: source "http://rubygems.org" # Specify your gem's dependencies in the gem
当我使用 require 'bundler/setup' 我得到 Bundler.with_clean_env 不受支持。 但是当我把它改成 require 'bundler' 它支持Bundler.
我是 Rails 的新手,正在尝试启动并运行演示应用程序。我的 linux 系统(lubuntu,主要是全新安装)在运行“捆绑安装”时遇到了问题。即使是这样,如果我关闭我的终端并启动另一个终端,它也无
所以我在我的电脑硬盘上安装了鹦鹉操作系统, 之后我更新了漏洞系统并尝试运行 MSFCONSOLE . 执行该命令后,我收到此错误: Bundler failed to load and return
我正在使用 heroku,每次我尝试推送我的应用程序时都会显示此消息: remote: Compressing source files... done. remote: Building sourc
我几天前才开始使用 ruby。我不完全理解 gemfile 的概念。我的 Gemfile 看起来像: source 'http://rubygems.org' gem 'sunspot_solr'
这是: require 'bundler' Bundler.setup 完成与: require 'bundler/setup' 据我所知,bundler/setup 自动要求所有组,而 requir
我已尝试使用 Elastic Beanstalk for rails。当我运行 eb deploy 时,我收到了这个错误。我需要至少安装 bundler 1.8.4。知道如何解决这个问题吗? Bun
在 Rails 应用程序中,在 boot.rb 中,有一行: require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE']) 在appli
您好,我一直在尝试安装 Ruby gem 包。收到此消息后,我按照 gem install bundle 的说明进行操作,但是当我键入 bundle -v 时它仍然不起作用。我也打字 捆绑并接收 /U
我是一名优秀的程序员,十分优秀!