我可以在 Mac 上安装 capybara-webkit,当我在 Ubuntu 上部署代码时,我面临以下错误
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb
Gem files will remain installed in /home/datas/.bundler/tmp/7940/gems/capybara-webkit-0.12.1 for inspection.
Results logged to /home/datas/.bundler/tmp/7940/gems/capybara-webkit-0.12.1/./gem_make.out
An error occured while installing capybara-webkit (0.12.1), and Bundler cannot continue.
Make sure that `gem install capybara-webkit -v '0.12.1'` succeeds before bundling.
即使我尝试过sudo gem install capybara-webkit -v '0.12.1'
我得到同样的错误。