Skip to content

Instantly share code, notes, and snippets.

@iksnae
Created February 18, 2018 19:20
Show Gist options
  • Select an option

  • Save iksnae/75abbd09943dd894008d48e10ecc0c9d to your computer and use it in GitHub Desktop.

Select an option

Save iksnae/75abbd09943dd894008d48e10ecc0c9d to your computer and use it in GitHub Desktop.
scaling-docker-on-aws: docker-compose up error
me:dockerzon iksnae$ docker-compose up
Building dockerzon
Step 1/12 : FROM ruby:2.3-slim
---> 39bed6bce295
Step 2/12 : MAINTAINER Nick Janetakis <[email protected]>
---> Using cache
---> 7b913db1c007
Step 3/12 : RUN apt-get update && apt-get install -qq -y --no-install-recommends build-essential nodejs libpq-dev
---> Using cache
---> 1b3cd99aad94
Step 4/12 : ENV INSTALL_PATH /dockerzon
---> Using cache
---> e2b1c706fe1e
Step 5/12 : RUN mkdir -p $INSTALL_PATH
---> Using cache
---> 944bc3890067
Step 6/12 : WORKDIR $INSTALL_PATH
---> Using cache
---> a15f9fede6a6
Step 7/12 : COPY Gemfile Gemfile
---> a5e838a0b9c8
Step 8/12 : RUN bundle install --binstubs
---> Running in 418f8ec56523
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies....
Fetching rake 12.3.0
Installing rake 12.3.0
Fetching concurrent-ruby 1.0.5
Installing concurrent-ruby 1.0.5
Fetching i18n 0.9.5
Installing i18n 0.9.5
Fetching json 1.8.6
Installing json 1.8.6 with native extensions
Fetching minitest 5.11.3
Installing minitest 5.11.3
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching tzinfo 1.2.5
Installing tzinfo 1.2.5
Fetching activesupport 4.2.6
Installing activesupport 4.2.6
Fetching builder 3.2.3
Installing builder 3.2.3
Fetching erubis 2.7.0
Installing erubis 2.7.0
Fetching mini_portile2 2.3.0
Installing mini_portile2 2.3.0
Fetching nokogiri 1.8.2
Installing nokogiri 1.8.2 with native extensions
Fetching rails-deprecated_sanitizer 1.0.3
Installing rails-deprecated_sanitizer 1.0.3
Fetching rails-dom-testing 1.0.9
Installing rails-dom-testing 1.0.9
Fetching crass 1.0.3
Installing crass 1.0.3
Fetching loofah 2.2.0
Installing loofah 2.2.0
Fetching rails-html-sanitizer 1.0.3
Installing rails-html-sanitizer 1.0.3
Fetching actionview 4.2.6
Installing actionview 4.2.6
Fetching rack 1.6.8
Installing rack 1.6.8
Fetching rack-test 0.6.3
Installing rack-test 0.6.3
Fetching actionpack 4.2.6
Installing actionpack 4.2.6
Fetching globalid 0.4.1
Installing globalid 0.4.1
Fetching activejob 4.2.6
Installing activejob 4.2.6
Fetching mini_mime 1.0.0
Installing mini_mime 1.0.0
Fetching mail 2.7.0
Installing mail 2.7.0
Fetching actionmailer 4.2.6
Installing actionmailer 4.2.6
Fetching activemodel 4.2.6
Installing activemodel 4.2.6
Fetching arel 6.0.4
Installing arel 6.0.4
Fetching activerecord 4.2.6
Installing activerecord 4.2.6
Fetching debug_inspector 0.0.3
Installing debug_inspector 0.0.3 with native extensions
Fetching binding_of_caller 0.8.0
Installing binding_of_caller 0.8.0 with native extensions
Using bundler 1.16.1
Fetching byebug 10.0.0
Installing byebug 10.0.0 with native extensions
Fetching coffee-script-source 1.12.2
Installing coffee-script-source 1.12.2
Fetching execjs 2.7.0
Installing execjs 2.7.0
Fetching coffee-script 2.4.1
Installing coffee-script 2.4.1
Fetching thor 0.20.0
Installing thor 0.20.0
Fetching railties 4.2.6
Installing railties 4.2.6
Fetching coffee-rails 4.1.1
Installing coffee-rails 4.1.1
Fetching ffi 1.9.21
Installing ffi 1.9.21 with native extensions
Fetching multi_json 1.13.1
Installing multi_json 1.13.1
Fetching jbuilder 2.7.0
Installing jbuilder 2.7.0
Fetching jquery-rails 4.3.1
Installing jquery-rails 4.3.1
Fetching sprockets 3.7.1
Installing sprockets 3.7.1
Fetching sprockets-rails 3.2.1
Installing sprockets-rails 3.2.1
Fetching rails 4.2.6
Installing rails 4.2.6
Fetching rb-fsevent 0.10.2
Installing rb-fsevent 0.10.2
Fetching rb-inotify 0.9.10
Installing rb-inotify 0.9.10
Fetching rdoc 4.3.0
Installing rdoc 4.3.0
Fetching sass-listen 4.0.0
Installing sass-listen 4.0.0
Fetching sass 3.5.5
Installing sass 3.5.5
Fetching tilt 2.0.8
Installing tilt 2.0.8
Fetching sass-rails 5.0.7
Installing sass-rails 5.0.7
Fetching sdoc 0.4.2
Installing sdoc 0.4.2
Fetching spring 2.0.2
Installing spring 2.0.2
Fetching sqlite3 1.3.13
Installing sqlite3 1.3.13 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /usr/local/bundle/gems/sqlite3-1.3.13/ext/sqlite3
/usr/local/bin/ruby -r ./siteconf20180218-6-1au2n81.rb extconf.rb
checking for sqlite3.h... no
sqlite3.h is missing. Try 'brew install sqlite3',
'yum install sqlite-devel' or 'apt-get install libsqlite3-dev'
and check your shared library search path (the
location where your sqlite3 shared library is located).
*** 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/bin/$(RUBY_BASE_NAME)
--with-sqlite3-config
--without-sqlite3-config
--with-pkg-config
--without-pkg-config
--with-sqlite3-dir
--without-sqlite3-dir
--with-sqlite3-include
--without-sqlite3-include=${sqlite3-dir}/include
--with-sqlite3-lib
--without-sqlite3-lib=${sqlite3-dir}/lib
To see why this extension failed to compile, please check the mkmf.log which can
be found here:
/usr/local/bundle/extensions/x86_64-linux/2.3.0/sqlite3-1.3.13/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /usr/local/bundle/gems/sqlite3-1.3.13 for
inspection.
Results logged to
/usr/local/bundle/extensions/x86_64-linux/2.3.0/sqlite3-1.3.13/gem_make.out
An error occurred while installing sqlite3 (1.3.13), and Bundler cannot
continue.
Make sure that `gem install sqlite3 -v '1.3.13'` succeeds before bundling.
In Gemfile:
sqlite3
ERROR: Service 'dockerzon' failed to build: The command '/bin/sh -c bundle install --binstubs' returned a non-zero code: 5
me:dockerzon iksnae$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment