質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
Windows 10

Windows 10は、マイクロソフト社がリリースしたOSです。Modern UIを標準画面にした8.1から、10では再びデスクトップ主体に戻され、UIも変更されています。PCやスマホ、タブレットなど様々なデバイスに幅広く対応していることが特徴です。

Ruby on Rails 5

Ruby on Rails 5は、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Q&A

0回答

499閲覧

Windows 10で、idn-ruby 0.1.0 のインストールエラー

popohaha

総合スコア6

Windows 10

Windows 10は、マイクロソフト社がリリースしたOSです。Modern UIを標準画面にした8.1から、10では再びデスクトップ主体に戻され、UIも変更されています。PCやスマホ、タブレットなど様々なデバイスに幅広く対応していることが特徴です。

Ruby on Rails 5

Ruby on Rails 5は、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

0グッド

0クリップ

投稿2018/01/21 00:51

編集2022/01/12 10:55

###前提・実現したいこと
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版をインストール済み

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問