ruby-on-rails - Bundler 是幽灵 bundle - 它使用 gem 但乘客返回 GemNotFoundError

标签 ruby-on-rails bundler

我正在使用 Rails 2.3.11 和 Bundler 1.0.10。

乘客返回错误

Could not find addressable-2.2.4 in any of the sources (Bundler::GemNotFound)

我安装了手动可寻址 2.2.4 并将它与 gem 'addressable', '2.2.4' bundle 在一起做了bundle install bundler 说 Using addressable (2.2.4) .

还是有上面的错误。

我使用Passenger 作为Apache2 模块。我将 RVM 与 Ruby 1.9.2 一起使用。乘客使用 1.8.7 运行。即使使用 RVM 将 Ruby 切换到 1.8.7 也不能解决问题。

最佳答案

除了 Zachary 所说的,那就是确保你选择了正确的 gemset,一定要运行
bundle install
在项目的目录中。就我的 Padrino 项目而言,一旦我运行了 bundle,它就可以正常工作(选择了那个 gemset)。

关于ruby-on-rails - Bundler 是幽灵 bundle - 它使用 gem 但乘客返回 GemNotFoundError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5328914/

相关文章:

ruby-on-rails - 尽管手动请求工作正常,但无法使用 yt gem 读取标题

ruby-on-rails - Rmagick 损坏 : Library not loaded:/usr/local/lib/libMagickCore-6. Q16.1.dylib

ruby - 部署依赖于非 Rubygems 托管的 Gem 的 Ruby 命令行应用程序

ruby-on-rails - "rails s"和 "bundle exec rails s"有什么区别?

jquery - 表单提交后复选框样式不起作用

ruby-on-rails - rails : How to make Date strftime aware of the default locale?

ruby-on-rails - 什么应该从 Ruby on Rails 的公共(public)源代码控制中删除?

ruby-on-rails - rails : acts_as_tree and acts_as_sane_tree

ruby - undefined symbol : SSLv2_method when running bundle install

heroku - 部署 Rails 3.1.rc4 时 sprockets 的问题