###前提・実現したいこと
Bundle Installしたときに、idn-ruby 0.1.0 でエラーが発生してしまいます。
こちらのエラーを解決し、Bndle Installを通したいのですが、どうしても解決しなかったため、質問いたしました。
Windows 10での作業を行っています。
###発生している問題・エラーメッセージ
Installing idn-ruby 0.1.0 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: C:/Ruby22/lib/ruby/gems/2.2.0/gems/idn-ruby-0.1.0/ext C:/Ruby22/bin/ruby.exe -r ./siteconf20180121-2576-14dt2m5.rb extconf.rb checking for main() in -lidn... no ERROR: could not find idn library! Please install the GNU IDN library or alternatively specify at least one of the following options if the library can only be found in a non-standard location: --with-idn-dir=/path/to/non/standard/location or --with-idn-lib=/path/to/non/standard/location/lib --with-idn-include=/path/to/non/standard/location/include *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-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 --srcdir=. --curdir --ruby=C:/Ruby22/bin/$(RUBY_BASE_NAME) --with-idn-dir --without-idn-dir --with-idn-include --without-idn-include=${idn-dir}/include --with-idn-lib --without-idn-lib=${idn-dir}/lib --with-idnlib --without-idnlib To see why this extension failed to compile, please check the mkmf.log which can be found here: C:/Ruby22/lib/ruby/gems/2.2.0/extensions/x86-mingw32/2.2.0/idn-ruby-0.1.0/mkmf.log extconf failed, exit code 1 Gem files will remain installed in C:/Ruby22/lib/ruby/gems/2.2.0/gems/idn-ruby-0.1.0 for inspection. Results logged to C:/Ruby22/lib/ruby/gems/2.2.0/extensions/x86-mingw32/2.2.0/idn-ruby-0.1.0/gem_make.out An error occurred while installing idn-ruby (0.1.0), and Bundler cannot continue. Make sure that `gem install idn-ruby -v '0.1.0'` succeeds before bundling. In Gemfile: twitter-text was resolved to 2.1.0, which depends on idn-ruby
###該当のソースコード
Bundle Install
###試したこと
●Windows 10では、apt-get installが使えないため、Chocolateyをインストールしました。
https://chocolatey.org/
● gem install idn-ruby -v 0.1.0
ERROR: Error installing idn-ruby: ERROR: Failed to build gem native extension. current directory: C:/Ruby22/lib/ruby/gems/2.2.0/gems/idn-ruby-0.1.0/ext C:/Ruby22/bin/ruby.exe -r ./siteconf20180121-6036-w34kkh.rb extconf.rb checking for main() in -lidn... no ERROR: could not find idn library! Please install the GNU IDN library or alternatively specify at least one of the following options if the library can only be found in a non-standard location: --with-idn-dir=/path/to/non/standard/location or --with-idn-lib=/path/to/non/standard/location/lib --with-idn-include=/path/to/non/standard/location/include *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-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 --srcdir=. --curdir --ruby=C:/Ruby22/bin/$(RUBY_BASE_NAME) --with-idn-dir --without-idn-dir --with-idn-include --without-idn-include=${idn-dir}/include --with-idn-lib --without-idn-lib=${idn-dir}/lib --with-idnlib --without-idnlib To see why this extension failed to compile, please check the mkmf.log which can be found here: C:/Ruby22/lib/ruby/gems/2.2.0/extensions/x86-mingw32/2.2.0/idn-ruby-0.1.0/mkmf.log extconf failed, exit code 1 Gem files will remain installed in C:/Ruby22/lib/ruby/gems/2.2.0/gems/idn-ruby-0.1.0 for inspection. Results logged to C:/Ruby22/lib/ruby/gems/2.2.0/extensions/x86-mingw32/2.2.0/idn-ruby-0.1.0/gem_make.out Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while...
●下記サイトを参考に、
choco install -y libidn-devel
を試して見ました。
"bundle install"でのGNU IDN Libraryについて
https://teratail.com/questions/85577
Chocolatey v0.10.8 Installing the following packages: libidn-devel By installing you accept licenses for the packages. libidn-devel not installed. The package was not found with the source(s) listed.
###補足情報(言語/FW/ツール等のバージョンなど)
Windows 10, RubyやDevKitはすべて32bit版をインストール済み
あなたの回答
tips
プレビュー