2016-08-01 4 views
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. 
+0

ruby​​-devライブラリが欠けているようです。どのプラットフォームを使用していますか? Linux?ダーウィン? – avellable

+0

はい、ありました。 ruby-devをインストールしてエラーを修正しました。私はLinux上です。 – nikk

+0

解決策を探している人が次回にそれを見ることができるように答えを書いてください。 – avellable

答えて

0

プログラムApache Thriftには、Apache Thriftのインストール要件で明示的に言及されていない追加の依存関係が必要です。このエラーを修正するには、次の操作を行います。

sudo apt-get install ruby-dev 

再試行してください。私のOSはUbuntuです。

関連する問題