问题
我无法将 Capybara-webkit 1.0.0 安装到我的 Rails 3.2.10 项目中。
当我运行时,bundle install
我收到以下错误。
此外,当我将 capybara-webkit 回滚到版本0.12.1
(2012 年 5 月 30 日)时,它安装得很好。
注意:我在 OSX 10.8 和 Ubuntu 10.04 上都遇到了同样的问题
错误
An error occurred while installing capybara-webkit (1.0.0) with bundler
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
想法
- 即使我安装了推荐的 4.8.5,它似乎也与 QT 有关
我的配置
- Ubuntu 10.04
- Postgres 9.2
- QT 4.8.5 支持水豚
- Redis 版本 1.2.0
- RBenv 0.4.0-54
- 红宝石 1.9.3-p392
- 宝石 1.8.23
- 捆绑器 1.3.5
- 导轨 3.2.10
- 水豚-webkit 1.0.0
我的宝石文件
这是宝石文件:
source 'http://rubygems.org'
ruby "1.9.3"
gem "builder"
gem 'unicorn'
gem 'rails', '3.2.10'
gem 'sass-rails', "~> 3.2.3"
gem 'jquery-rails'
gem 'pg'
gem 'appsignal'
gem 'appsignal-redis'
gem 'skylight'
gem "rollbar", "~> 0.10.12"
gem 'exceptional'
gem 'forem', :git => "git://github.com/radar/forem.git"
gem 'forem-postgres-search', :git=>"git://github.com/jgadbois/forem-postgres-search.git"
gem 'forem-theme-base', :path=>'vendor/gems/forem-theme-wt'
gem 'forem-markdown_formatter', :git => "git://github.com/jgadbois/forem-markdown_formatter.git"
group :assets do
gem 'coffee-rails', "~> 3.2.1"
gem 'uglifier', '>= 1.0.3'
end
group :production do
gem 'dalli', :git=>'git://github.com/mperham/dalli.git'
gem 'rpm_contrib'
gem 'newrelic_rpm'
gem 'memcachier'
end
group :test do
gem "factory_girl_rails", "~> 3.0"
gem 'capybara'
gem 'capybara-webkit'
gem 'rspec-rails', ">= 2.14"
gem 'database_cleaner'
gem 'spring'
gem 'selenium-webdriver'
end
group :development, :test do
gem 'guard-rspec', "~> 2.5"
gem 'guard-livereload'
gem 'better_errors'
gem 'binding_of_caller'
gem 'meta_request'
gem 'rb-fsevent', '~> 0.9'
gem 'rack-livereload'
end
gem 'heroku', ">= 2.40"
gem 'resque'
gem 'resque-web'
gem "hiredis", "~> 0.4.0"
gem "redis", "~> 3.0", :require => ["redis/connection/hiredis", "redis"]
gem 'resque_mailer'
gem "hirefire-resource"
gem 'cancan'
gem 'devise'
gem 'devise-encryptable'
gem "omniauth-facebook"
gem 'paperclip'
gem 'aws-sdk'
gem "rake", '0.9.2.2'
gem 'friendly_id', '~> 4.0.10'
gem 'hpricot'
gem 'kaminari'
gem "simple-navigation"
gem 'ransack'
gem 'amazon-product-advertising-api'
gem 'ckeditor'
gem "activemerchant", :git => 'git://github.com/Shopify/active_merchant.git'#:git => 'git://github.com/jgadbois/active_merchant.git'
gem 'stripe'
gem 'acts-as-taggable-on'
gem 'carrierwave'
gem 'ancestry'
gem 'geocoder'
gem 'profanity_filter'
source "http://gems.github.com"
gem "feedzirra"
gem "grackle"
gem "rmagick"
gem 'hominid'
gem "letter_opener", :group => :development
gem 'rack-contrib'
gem 'soulmate', :require => 'soulmate/server', :github => 'jgadbois/soulmate'
gem 'wicked_pdf', :git => 'git://github.com/mileszs/wicked_pdf.git'
gem 'dynamic_form'
gem "SystemTimer", :require => "system_timer", :platforms => :ruby_18
gem "rack-timeout"
gem 'pusher'
gem 'bourbon'
gem 'client_side_validations'
gem 'roadie'
gem 'rails_autolink'
gem 'leaderboard', "~> 2.2.0"
gem 'wicked'
gem 'rack-rewrite'
gem 'select2-rails'
gem 'koala'
gem 'health_graph'
gem 'twilio-ruby'
gem 'country_select'
gem 'oauth'
gem 'mandrill-api', '>= 1.0.41'
gem "active_model_serializers", "~> 0.8.0"
gem "heroku-api"
gem "bust_rails_etags"
gem 'cache_digests'
gem 'activerecord-postgres-hstore'