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

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

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

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Ruby on Rails 6

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

Q&A

1回答

2943閲覧

windows10ローカル環境でbundle installができない

inori11

総合スコア5

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Ruby on Rails 6

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

0グッド

0クリップ

投稿2020/05/08 03:12

環境 
windows10 sudoは使えません
ruby2.6.6

エラー内容

ruby

1C:\Users\81802\Desktop\sample>rails server

すると

ruby

1Could not find gem 'unicorn (~> 5.5.1) x64-mingw32' in any of the gem sources listed in your Gemfile. 2Run `bundle install` to install missing gems.

となり、このエラーが解除できません。

試したこと
bundle updateとbundle installすると同じエラーが出ました。
Gemfileにunicornやkgioを記述してもエラーが出ます。
どうすればよろしいでしょうか。

ruby

1Installing kgio 2.11.3 with native extensions 2Gem::Ext::BuildError: ERROR: Failed to build gem native extension. 3 4current directory: 5C:/Users/81802/Desktop/sample/sample/ruby/2.6.0/gems/kgio-2.11.3/ext/kgio 6C:/Ruby26-x64/bin/ruby.exe -I C:/Ruby26-x64/lib/ruby/2.6.0 -r 7./siteconf20200508-27212-i1wxl3.rb extconf.rb 8checking for CLOCK_MONOTONIC in time.h... yes 9checking for clockid_t in time.h... yes 10checking for clock_gettime() in -lrt... no 11checking for t_open() in -lnsl... no 12checking for socket() in -lsocket... no 13checking for poll() in poll.h... no 14checking for getaddrinfo() in sys/types.h,sys/socket.h,netdb.h... no 15getaddrinfo required 16*** extconf.rb failed *** 17Could not create Makefile due to some reason, probably lack of necessary 18libraries and/or headers. Check the mkmf.log file for more details. You may 19need configuration options. 20 21Provided configuration options: 22 --with-opt-dir 23 --without-opt-dir 24 --with-opt-include 25 --without-opt-include=${opt-dir}/include 26 --with-opt-lib 27 --without-opt-lib=${opt-dir}/lib 28 --with-make-prog 29 --without-make-prog 30 --srcdir=. 31 --curdir 32 --ruby=C:/Ruby26-x64/bin/$(RUBY_BASE_NAME) 33 --with-rtlib 34 --without-rtlib 35 --with-nsllib 36 --without-nsllib 37 --with-socketlib 38 --without-socketlib 39 40To see why this extension failed to compile, please check the mkmf.log which can 41be found here: 42 43C:/Users/81802/Desktop/sample/sample/ruby/2.6.0/extensions/x64-mingw32/2.6.0/kgio-2.11.3/mkmf.log 44 45extconf failed, exit code 1 46 47Gem files will remain installed in 48C:/Users/81802/Desktop/sample/sample/ruby/2.6.0/gems/kgio-2.11.3 for inspection. 49Results logged to 50C:/Users/81802/Desktop/sample/sample/ruby/2.6.0/extensions/x64-mingw32/2.6.0/kgio-2.11.3/gem_make.out 51 52An error occurred while installing kgio (2.11.3), and Bundler cannot continue. 53Make sure that `gem install kgio -v '2.11.3' --source 'https://rubygems.org/'` 54succeeds before bundling. 55 56In Gemfile: 57 unicorn was resolved to 5.5.5, which depends on 58 kgio

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

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

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

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

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

inori11

2020/05/08 07:23

ありがとうございます。
guest

回答1

0

kgio(2.11.3)のインストール中にエラーが発生し、Bundlerは続行できないと書かれています。

gem install kgio -v '2.11.3' --source 'https://rubygems.org/'

を実行するよう記載がありますが、これはもう試されていますか?
一度これを実行頂いてエラーなく処理が終わるようであれば、
その後にbundle installしてみて下さい。

投稿2020/05/12 18:37

gnfreeworks

総合スコア306

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

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

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

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

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

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

ただいまの回答率
85.50%

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

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

質問する

関連した質問