https://doruby.jp/users/nakamatsu/entries/S3から複数のファイルを取得しつつ on-the-fly でZipを作ってブラウザに返す
これを参考に
gem 'zipline'
をかいて bundle install したのですが次のようなエラーが出ました
エラー内容で検索してもそれらしい記事にヒットしないので環境の問題な気がしますが
解決方法がわかれば教えていただけないでしょうか
Fetching curb 0.9.6 Installing curb 0.9.6 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /usr/local/rbenv/versions/2.2.2/bin/ruby -r ./siteconf20181017-1039-1qqjsvm.rb extconf.rb checking for curl-config... no checking for main() in -lcurl... no *** 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=/usr/local/rbenv/versions/2.2.2/bin/$(RUBY_BASE_NAME) --with-curl-dir --without-curl-dir --with-curl-include --without-curl-include=${curl-dir}/include --with-curl-lib --without-curl-lib=${curl-dir}/lib --with-curllib --without-curllib extconf.rb:18:in `<main>': Can't find libcurl or curl/curl.h (RuntimeError) Try passing --with-curl-dir or --with-curl-lib and --with-curl-include options to extconf. extconf failed, exit code 1 Gem files will remain installed in /root/vendor/bundle/ruby/2.2.0/gems/curb-0.9.6 for inspection. Results logged to /root/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0-static/curb-0.9.6/gem_make.out An error occurred while installing curb (0.9.6), and Bundler cannot continue. Make sure that `gem install curb -v '0.9.6'` succeeds before bundling. In Gemfile: zipline was resolved to 1.0.2, which depends on curb
環境:
ホストOSは mac OS 10.13.6 の docker コンテナ上
ruby-2.2.2 rbenv からインストール
rails-4.2.3
です
サーバーインフラ関係の知識がまったくないので
インストールエラーに関してはどこの何をみればいいのかまったくわかりません
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2018/10/23 05:34
2018/10/23 05:36
2018/10/23 05:53
退会済みユーザー
2018/10/23 06:20
2018/10/23 06:29
退会済みユーザー
2018/10/23 07:03