Skip to content

Instantly share code, notes, and snippets.

@mimikun
Created January 9, 2019 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mimikun/b590b0623ec2795bd2893ec88c84d493 to your computer and use it in GitHub Desktop.
Save mimikun/b590b0623ec2795bd2893ec88c84d493 to your computer and use it in GitHub Desktop.
mastodon 270rc1 エラー
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/mastodon/vendor/bundle/ruby/2.4.0/gems/nokogiri-1.10.0/ext/nokogiri
/usr/local/bin/ruby -r ./siteconf20190109-10-qh7kim.rb extconf.rb
--use-system-libraries --with-iconv-lib=/usr/local/lib
--with-iconv-include=/usr/local/include
checking if the C compiler accepts ... yes
Building nokogiri using system libraries.
Using pkg-config gem version 1.3.2
checking for libexslt... yes
checking for xmlParseDoc() in libxml/parser.h... no
checking for xmlParseDoc() in -lxml2... no
checking for xmlParseDoc() in -llibxml2... no
-----
libxml2 is missing. Please locate mkmf.log to investigate how it is failing.
-----
*** 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)
--help
--clean
--use-system-libraries
--with-zlib-dir
--without-zlib-dir
--with-zlib-include
--without-zlib-include=${zlib-dir}/include
--with-zlib-lib
--without-zlib-lib=${zlib-dir}/lib
--with-xml2-dir
--without-xml2-dir
--with-xml2-include
--without-xml2-include=${xml2-dir}/include
--with-xml2-lib
--without-xml2-lib=${xml2-dir}/lib
--with-libxml-2.0-config
--without-libxml-2.0-config
--with-pkg-config
--without-pkg-config
--with-xslt-dir
--without-xslt-dir
--with-xslt-include
--without-xslt-include=${xslt-dir}/include
--with-xslt-lib
--without-xslt-lib=${xslt-dir}/lib
--with-libxslt-config
--without-libxslt-config
--with-exslt-dir
--without-exslt-dir
--with-exslt-include
--without-exslt-include=${exslt-dir}/include
--with-exslt-lib
--without-exslt-lib=${exslt-dir}/lib
--with-libexslt-config
--without-libexslt-config
--with-pkg-config
--without-pkg-config
--with-override-variables
--without-override-variables
--with-xml2lib
--without-xml2lib
--with-libxml2lib
--without-libxml2lib
To see why this extension failed to compile, please check the mkmf.log which can
be found here:
/mastodon/vendor/bundle/ruby/2.4.0/extensions/x86_64-linux/2.4.0/nokogiri-1.10.0/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in
/mastodon/vendor/bundle/ruby/2.4.0/gems/nokogiri-1.10.0 for inspection.
Results logged to
/mastodon/vendor/bundle/ruby/2.4.0/extensions/x86_64-linux/2.4.0/nokogiri-1.10.0/gem_make.out
An error occurred while installing nokogiri (1.10.0), and Bundler cannot
continue.
Make sure that `gem install nokogiri -v '1.10.0' --source
'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
rails-settings-cached was resolved to 0.6.6, which depends on
rails was resolved to 5.2.2, which depends on
actioncable was resolved to 5.2.2, which depends on
actionpack was resolved to 5.2.2, which depends on
actionview was resolved to 5.2.2, which depends on
rails-dom-testing was resolved to 2.0.3, which depends on
nokogiri
ERROR: Service 'web' failed to build: The command '/bin/sh -c bundle config build.nokogiri --use-system-libraries --with-iconv-lib=/usr/local/lib --with-iconv-include=/usr/local/include && bundle install -j$(getconf _NPROCESSORS_ONLN) --deployment --without test development && yarn install --pure-lockfile --ignore-engines && yarn cache clean' returned a non-zero code: 5
mastodon@mstdn-main:~/mastodon$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment