carlhuda/bundler — Issue #1634: Gems requiring native extension builds fail with `bundle install` but work with `gem install`
Author: enthooz
Created: 2012-01-19 20:04:22+00:00
State: open

While running `bundle install`, it is consistently failing when it reaches a gem that requires building of a native extension with the following message:

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/home/deploy/.rvm/rubies/ruby-1.8.7-p357/bin/ruby extconf.rb

Subsequently running `gem install GEMNAME -v 'VERSION'` works, running `bundle install` again will pass the previously failing gem but fail again when it reaches another gem requiring native extension. Again, this gem will install just fine with `gem install`.

Here is a similar stackoverflow issue: http://stackoverflow.com/questions/7331092/cant-fix-bundle-install-failing-for-gems-with-native-extensions