jekyll-docker
jekyll-docker copied to clipboard
Missed requirements?
When run
docker run --rm -i -v $(PWD):/srv/jekyll \
-e JEKYLL_GITHUB_TOKEN \
jekyll/jekyll:pages jekyll build --future
with Gemfile
source 'https://rubygems.org'
group :jekyll_plugins do
gem 'github-pages', "= 215"
gem 'jekyll-paginate'
gem 'jekyll-sitemap'
gem 'jekyll-gist'
gem 'jekyll-feed'
gem 'jemoji'
gem 'jekyll-include-cache'
end
I receive
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies.....
Fetching minitest 5.14.4
Fetching concurrent-ruby 1.1.9
Installing minitest 5.14.4
Installing concurrent-ruby 1.1.9
Using thread_safe 0.3.6
Using zeitwerk 2.4.2
Using public_suffix 4.0.6
Using bundler 2.2.2
Using coffee-script-source 1.11.1
Fetching execjs 2.8.1
Installing execjs 2.8.1
Using colorator 1.1.0
Using unf_ext 0.0.7.7
Using eventmachine 1.2.7
Using http_parser.rb 0.6.0
Fetching ffi 1.15.1
Fetching faraday-em_http 1.0.0
Installing faraday-em_http 1.0.0
Fetching faraday-em_synchrony 1.0.0
Installing ffi 1.15.1 with native extensions
Installing faraday-em_synchrony 1.0.0
Fetching faraday-excon 1.1.0
Installing faraday-excon 1.1.0
Fetching faraday-net_http 1.0.1
Installing faraday-net_http 1.0.1
Fetching faraday-net_http_persistent 1.1.0
Installing faraday-net_http_persistent 1.1.0
Using multipart-post 2.1.1
Fetching ruby2_keywords 0.0.4
Using forwardable-extended 2.6.0
Using gemoji 3.0.1
Fetching rb-fsevent 0.11.0
Installing ruby2_keywords 0.0.4
Installing rb-fsevent 0.11.0
Fetching rexml 3.2.5
Using liquid 4.0.3
Using mercenary 0.3.6
Using rouge 3.26.0
Using safe_yaml 1.0.5
Fetching racc 1.5.2
Installing rexml 3.2.5
Using jekyll-paginate 1.1.0
Using rubyzip 2.3.0
Using jekyll-swiss 1.0.0
Using unicode-display_width 1.7.0
Using tzinfo 1.2.9
Using addressable 2.7.0
Using i18n 0.9.5
Using coffee-script 2.4.1
Using unf 0.1.4
Using em-websocket 0.5.2
Using pathutil 0.16.2
Fetching faraday 1.4.2
Installing racc 1.5.2 with native extensions
Installing faraday 1.4.2
Fetching kramdown 2.3.1
Using terminal-table 1.8.0
Fetching activesupport 6.0.4
Installing kramdown 2.3.1
Installing activesupport 6.0.4
Fetching ruby-enum 0.9.0
Installing ruby-enum 0.9.0
Using jekyll-coffeescript 1.1.1
Fetching simpleidn 0.2.1
Using sawyer 0.8.2
Using kramdown-parser-gfm 1.1.0
Using commonmarker 0.17.13
Fetching octokit 4.21.0
Installing simpleidn 0.2.1
Using dnsruby 1.61.5
Installing octokit 4.21.0
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /usr/gem/gems/ffi-1.15.1/ext/ffi_c
/usr/local/bin/ruby -I /usr/local/lib/ruby/site_ruby/2.7.0 -r
./siteconf20210616-28-1poh1gt.rb extconf.rb
*** 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-ffi_c-dir
--without-ffi_c-dir
--with-ffi_c-include
--without-ffi_c-include=${ffi_c-dir}/include
--with-ffi_c-lib
--without-ffi_c-lib=${ffi_c-dir}/lib
--enable-system-libffi
--disable-system-libffi
--with-libffi-config
--without-libffi-config
--with-pkg-config
--without-pkg-config
/usr/local/lib/ruby/2.7.0/mkmf.rb:471:in `try_do': The compiler failed to
generate an executable file. (RuntimeError)
You have to install development tools first.
from /usr/local/lib/ruby/2.7.0/mkmf.rb:564:in `try_link0'
from /usr/local/lib/ruby/2.7.0/mkmf.rb:582:in `try_link'
from /usr/local/lib/ruby/2.7.0/mkmf.rb:684:in `try_ldflags'
from /usr/local/lib/ruby/2.7.0/mkmf.rb:1851:in `pkg_config'
from extconf.rb:9:in `system_libffi_usable?'
from extconf.rb:42:in `<main>'
To see why this extension failed to compile, please check the mkmf.log which can
be found here:
/usr/gem/extensions/x86_64-linux-musl/2.7.0/ffi-1.15.1/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /usr/gem/gems/ffi-1.15.1 for inspection.
Results logged to
/usr/gem/extensions/x86_64-linux-musl/2.7.0/ffi-1.15.1/gem_make.out
An error occurred while installing ffi (1.15.1), and Bundler cannot continue.
Make sure that `gem install ffi -v '1.15.1' --source 'https://rubygems.org/'`
succeeds before bundling.
In Gemfile:
github-pages was resolved to 215, which depends on
github-pages-health-check was resolved to 1.17.2, which depends on
typhoeus was resolved to 1.4.0, which depends on
ethon was resolved to 0.14.0, which depends on
ffi
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /usr/gem/gems/racc-1.5.2/ext/racc/cparse
/usr/local/bin/ruby -I /usr/local/lib/ruby/site_ruby/2.7.0 -r
./siteconf20210616-28-9bziek.rb extconf.rb
checking for rb_ary_subseq()... *** 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)
/usr/local/lib/ruby/2.7.0/mkmf.rb:471:in `try_do': The compiler failed to
generate an executable file. (RuntimeError)
You have to install development tools first.
from /usr/local/lib/ruby/2.7.0/mkmf.rb:564:in `try_link0'
from /usr/local/lib/ruby/2.7.0/mkmf.rb:582:in `try_link'
from /usr/local/lib/ruby/2.7.0/mkmf.rb:794:in `try_func'
from /usr/local/lib/ruby/2.7.0/mkmf.rb:1083:in `block in have_func'
from /usr/local/lib/ruby/2.7.0/mkmf.rb:971:in `block in checking_for'
from /usr/local/lib/ruby/2.7.0/mkmf.rb:361:in `block (2 levels) in postpone'
from /usr/local/lib/ruby/2.7.0/mkmf.rb:331:in `open'
from /usr/local/lib/ruby/2.7.0/mkmf.rb:361:in `block in postpone'
from /usr/local/lib/ruby/2.7.0/mkmf.rb:331:in `open'
from /usr/local/lib/ruby/2.7.0/mkmf.rb:357:in `postpone'
from /usr/local/lib/ruby/2.7.0/mkmf.rb:970:in `checking_for'
from /usr/local/lib/ruby/2.7.0/mkmf.rb:1082:in `have_func'
from extconf.rb:6:in `<main>'
To see why this extension failed to compile, please check the mkmf.log which can
be found here:
/usr/gem/extensions/x86_64-linux-musl/2.7.0/racc-1.5.2/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /usr/gem/gems/racc-1.5.2 for inspection.
Results logged to
/usr/gem/extensions/x86_64-linux-musl/2.7.0/racc-1.5.2/gem_make.out
An error occurred while installing racc (1.5.2), and Bundler cannot continue.
Make sure that `gem install racc -v '1.5.2' --source 'https://rubygems.org/'`
succeeds before bundling.
In Gemfile:
github-pages was resolved to 215, which depends on
jekyll-mentions was resolved to 1.6.0, which depends on
html-pipeline was resolved to 2.14.0, which depends on
nokogiri was resolved to 1.11.7, which depends on
racc
Resolved with
docker run --rm -i -v $(PWD):/srv/jekyll \
-e JEKYLL_GITHUB_TOKEN \
jekyll/jekyll:pages sh -c "apk add libc-dev gcc make && jekyll build --future"