简体   繁体   English

安装ZenTest(4.8.2)时发生错误,并且Bundler无法继续。

[英]An error occurred while installing ZenTest (4.8.2), and Bundler cannot continue.

When I practice the Chapter three of the tutorial of Ruby on Rails. 当我练习Ruby on Rails教程的第三章时。 After mostly static pages: conclusion. 在大部分静态页面之后:结论。 I tried to push my app to heroku but an error showed up as below: (I searched this error everywhere but can not get a solution) 我试图将我的应用程序推送到heroku,但出现如下错误:(我到处都搜索了此错误,但无法找到解决方案)

Counting objects: 96, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (73/73), done.
Writing objects: 100% (79/79), 8.92 KiB, done.
Total 79 (delta 35), reused 0 (delta 0)

-----> Heroku receiving push
-----> Ruby/Rails app detected
-----> Installing dependencies using Bundler version 1.2.1
       Running: bundle install --without development:test --path vendor/bundle --binstubs bin/ --deployment
       Fetching gem metadata from https://rubygems.org/.........
       Fetching gem metadata from https://rubygems.org/..
       Installing rake (0.8.7)
       Installing ZenTest (4.8.2)
       Gem::InstallError: ZenTest requires RubyGems version ~> 1.8. Try 'gem update --system' to update RubyGems itself.
       An error occurred while installing ZenTest (4.8.2), and Bundler cannot continue.
       Make sure that `gem install ZenTest -v '4.8.2'` succeeds before bundling.
 !
 !     Failed to install gems via Bundler.
 !
 !     Heroku push rejected, failed to compile Ruby/rails app

To git@heroku.com:stark-tundra-9366.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:stark-tundra-9366.git'

My Gemfile is like this: 我的Gemfile是这样的:

source 'https://rubygems.org'

gem 'rails', '3.2.8'

gem 'sqlite3', :group => [:development, :test]

gem 'rb-fsevent', '~> 0.9.1'
gem "ZenTest", "~> 4.8.2"
gem 'rake', '~> 0.8.7'

group :development, :test do
  gem 'guard-spork', '1.2.0'
  gem 'spork', '0.9.2'
end

group :production do
  gem 'thin'
  gem 'pg'
end

group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'
  gem 'uglifier', '>= 1.0.3'
end

gem 'jquery-rails'

group :development do
  gem 'rspec-rails', '2.11.0'
end

group :text do
  gem 'rspec', '2.11.0'
  gem 'webrat', '0.7.2'
end

I don't know what's wrong with this app. 我不知道这个程序有什么问题。 I changed the Zentest version and put into test or production, it didn't work. 我更改了Zentest版本并投入测试或生产,但是没有用。

ZenTest seems to have limited the newest rubygems allowed. ZenTest似乎限制了所允许的最新红宝石。 The solution for it is to update ZenTest, as well as rubygems, as newest ZenTest seems to work better. 解决方案是更新ZenTest和rubygems,因为最新的ZenTest似乎更好。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 安装 json (1.7.6) 时出错,Bundler 无法继续。 - An error occurred while installing json (1.7.6), and Bundler cannot continue. 安装bcrypt(3.1.11)时发生错误,Bundler无法继续。 - An error occurred while installing bcrypt (3.1.11), and Bundler cannot continue. 如何解决'安装rake(10.5.0)时出错,而Bundler无法继续。' 错误 - How to fix 'An error occurred while installing rake (10.5.0), and Bundler cannot continue.' error Rails教程:“安装ffi(1.9.10)时发生错误,并且Bundler无法继续。” - Rails tutorial: “An error occurred while installing ffi (1.9.10), and Bundler cannot continue.” 安装json(1.8.3)时出错,Bundler无法继续。 在 Ubuntu 上 - An error occurred while installing json (1.8.3), and Bundler cannot continue. on Ubuntu 安装机架(2.0.1)时发生错误,并且Bundler无法继续。 捆绑前,请确保`gem install rack -v'2.0.1'`成功 - An error occurred while installing rack (2.0.1), and Bundler cannot continue. Make sure that `gem install rack -v '2.0.1'` succeeds before bundling 安装调试器时出错(1.6.8),Bundler无法继续。 确保`gem install debugger -v'1.6.8'` - Error occurred while installing debugger (1.6.8), and Bundler cannot continue. Make sure that `gem install debugger -v '1.6.8'` 不幸的是,发生了意外错误,Bundler 无法继续。! 这是什么意思? - Unfortunately, an unexpected error occurred, and Bundler cannot continue.! what is it mean? 解决错误:安装mysql2(0.4.5)时发生错误,并且Bundler无法继续。 确保`gem install mysql2 -v'0.4.5'` - Resolve error: An error occurred while installing mysql2 (0.4.5), and Bundler cannot continue. Make sure that `gem install mysql2 -v '0.4.5'` 安装 pg (0.15.1) 时出错,Bundler 无法继续 - An error occurred while installing pg (0.15.1), and Bundler cannot continue
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM