【发布时间】:2015-11-30 18:28:34
【问题描述】:
每当我运行 rails 服务器或规范时,我都会收到此错误:
Could not find debugger-1.6.8 in any of the sources
当我运行gem install debugger 时,它运行良好:
Building native extensions. This could take a while...
Successfully installed debugger-1.6.8
1 gem installed
Installing ri documentation for debugger-1.6.8...
Installing RDoc documentation for debugger-1.6.8...
(eval):5: warning: regular expression has ']' without escape: /\[a-z]+/
但捆绑器列表未显示 debugger-1.6.8:
* daemons (1.2.3)
* delayed_job (4.0.3)
* delayed_job_active_record (4.1.0)
* diff-lcs (1.2.5)
* domain_name (0.5.25)
* double-bag-ftps (0.1.2)
我也没有阻止安装任何 gem 的 .bundle/config 文件。
这是我的 Gemfile 与 :test 和 :development 组:
group :test, :development do
gem 'sqlite3', '1.3.9'
gem 'rspec-rails', '~> 2.14.2'
gem 'pry'
gem 'awesome_print', '1.2.0'
gem 'debugger', platform: :mri_19
gem 'byebug' if RUBY_VERSION >= '2.0.0'
end
当我删除平台规范时,我得到这个错误:
An error occurred while installing debugger (1.6.8), and Bundler cannot continue.
Make sure that `gem install debugger -v '1.6.8'` succeeds before bundling.
我正在使用 rbenv 运行 ruby 1.9.3-p551。
如何将调试器 gem 安装到项目包中,以便运行服务器和测试?
【问题讨论】:
-
你检查过 Gemfile 吗?
-
添加了一些说明
标签: ruby-on-rails ruby gem bundle bundler