gemをインストールしようとするといくつかの問題が発生します。エラー:mysql2のインストール中にエラーが発生しました:ERROR:Gemネイティブ拡張を構築できません
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--with-mysql-dir
--without-mysql-dir
--with-mysql-include
--without-mysql-include=${mysql-dir}/include
--with-mysql-lib
--without-mysql-lib=${mysql-dir}/lib
--with-mysql-config
--without-mysql-config
Gem files will remain installed in `..../gems/ruby-1.9.3-p392/gems/mysql2-0.3.17 for inspection`.
Results logged to `.../gems/ruby-1.9.3-p392/extensions/x86_64-darwin-14/1.9.1/mysql2-0.3.17/gem_make.out`
どのように私は正常にこの問題を解決することができ:私は宝石インストールmysql2 -v「0.3.17」や宝石をインストールmysql2 -v「0.3.17」を実行してインストールしようとすると、それは私に次のエラーを与えますmysql2をインストールしますか?
ありがとうございます。
'.../gems/ruby-1.9.3-p392/extensions/x86_64-darwin-14/1.9.1/mysql2-0.3.17/gem_make.out'ファイルの内容を含めることができますか?エラーメッセージの最後の行に 'Results logged to .. 'と表示されます。 –
これは役立ちます:http://stackoverflow.com/questions/4115126/ruby-gem-mysql2-install-failing –