0
Apache Thriftをビルドしてソースからインストールしています。私がmakeを実行すると、Gemネイティブについて次のエラーが発生します。どのように私はこの宝石のネイティブ拡張エラーに対処できますか?Apache Thriftのインストール時にgem拡張機能でエラーが発生する
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from extconf.rb:2:in `<main>'
Gem files will remain installed in /tmp/bundler20160731-25561-wpjc2k/eventmachine-1.2.0.1/gems/eventmachine-1.2.0.1 for inspection.
Results logged to /tmp/bundler20160731-25561-wpjc2k/eventmachine-1.2.0.1/gems/eventmachine-1.2.0.1/ext/gem_make.out
An error occurred while installing eventmachine (1.2.0.1), and Bundler cannot continue.
Make sure that `gem install eventmachine -v '1.2.0.1'` succeeds before bundling.
ruby-devライブラリが欠けているようです。どのプラットフォームを使用していますか? Linux?ダーウィン? – avellable
はい、ありました。 ruby-devをインストールしてエラーを修正しました。私はLinux上です。 – nikk
解決策を探している人が次回にそれを見ることができるように答えを書いてください。 – avellable