ruby on rails - /kernel_require.rb:55:in `require': cannot load such file -- mini_portile -
when setup gitlab sudo -u git -h bundle install --deployment --without development test postgres aws
gem::ext::builderror: error: failed build gem native extension.
/usr/local/bin/ruby extconf.rb checking if c compiler accepts ... yes building nokogiri using packaged libraries.
* extconf.rb failed * not create makefile due reason, lack of necessary libraries and/or headers. check mkmf.log file more details. 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 --help --clean --use-system-libraries /usr/local/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
require': cannot load such file -- mini_portile (loaderror) /usr/local/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
require' extconf.rb:381:in `'extconf failed, exit code 1
gem files remain installed in /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/nokogiri-1.6.5 inspection. results logged /home/git/gitlab/vendor/bundle/ruby/2.1.0/extensions/x86_64-linux/2.1.0-static/nokogiri-1.6.5/gem_make.out
an error occurred while installing nokogiri (1.6.5), , bundler cannot continue. make sure
gem install nokogiri -v '1.6.5'
succeeds before bundling.
gem install nokogiri -v '1.6.5'
building native extensions. take while... /usr/local/lib/ruby/2.1.0/rubygems/ext/builder.rb:73: warning: insecure world writable dir /opt/java/jdk1.7.0_71/bin in path, mode 040777 error: error installing nokogiri: error: failed build gem native extension.
/usr/local/bin/ruby extconf.rb checking if c compiler accepts ... yes building nokogiri using packaged libraries. checking
iconv... yes ************************************************************************ important notice:
buidling nokogiri packaged version of libxml2-2.9.2 following patches applied: - 0001-revert-missing-initialization-for-the-catalog-module.patch - 0002-fix-missing-entities-after-cve-2014-3660-fix.patch
team nokogiri keep on doing best provide security updates in timely manner, if concern , want use system library instead; abort installation process , reinstall nokogiri follows:
gem install nokogiri -- --use-system-libraries [--with-xml2-config=/path/to/xml2-config] [--with-xslt-config=/path/to/xslt-config]
if using bundler, tell use option:
bundle config build.nokogiri --use-system-libraries bundle install
note, however, nokogiri not compatible arbitrary versions of libxml2 provided os/package vendors. ************************************************************************ extracting libxml2-2.9.2.tar.gz tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.9.2... ok running patch /usr/local/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.5/ports/patches/libxml2/0001-revert-missing-initialization-for-the-catalog-module.patch... running 'patch' libxml2 2.9.2... ok running patch /usr/local/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.5/ports/patches/libxml2/0002-fix-missing-entities-after-cve-2014-3660-fix.patch... running 'patch' libxml2 2.9.2... ok running 'configure' libxml2 2.9.2... notice: miniportile: escaping shell characters not necessary in miniportile 0.7.0+ ("cflags\=-fpic\ "). set
:unescape _commands
option false if want preserve escapes. ok running 'compile' libxml2 2.9.2... error, review '/usr/local/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.5/ext/nokogiri/tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.9.2 /compile.log' see happened. last lines are: ======================================================================== cc pattern.lo cc xmlsave.lo cc xmlmodule.lo cc schematron.lo cc xzlib.lo ccld libxml2.la cc
testdso.lo ccld testdso.la cc xmllint.o ccld
xmllint ./.libs/libxml2.a(xmlio.o): in functionxmlgzfileopen_real': xmlio.c:(.text+0x10d3): undefined reference to
gzopen64' ./.libs/libxml2.a(xmlio.o): in functionxmlgzfileopenw': xmlio.c:(.text+0x126e): undefined reference to
gzopen64' collect2: ld returned 1 exit status make[2]: *** [xmllint] error 1 make[2]: leaving directory/usr/local/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.5/ext/nokogiri/tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.9.2/libxml2-2.9.2' make[1]: *** [all-recursive] error 1 make[1]: leaving directory
/usr/local/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.5/ext/nokogiri/tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.9.2/libxml2-2.9.2'make: *** [all] error 2
* extconf.rb failed * not create makefile due reason, lack of necessary libraries and/or headers. check mkmf.log file more details. 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 --help --clean --use-system-libraries --enable-static --disable-static --with-zlib-dir --without-zlib-dir --with-zlib-include --without-zlib-include=${zlib-dir}/include --with-zlib-lib --without-zlib-lib=${zlib-dir}/lib --enable-cross-build --disable-cross-build /usr/local/lib/ruby/gems/2.1.0/gems/mini_portile-0.7.0.rc4/lib/mini_portile/mini_portile.rb:365:in
block in execute': failed complete compile task (runtimeerror) /usr/local/lib/ruby/gems/2.1.0/gems/mini_portile-0.7.0.rc4/lib/mini_portile/mini_portile.rb:334:in
chdir' /usr/local/lib/ruby/gems/2.1.0/gems/mini_portile-0.7.0.rc4/lib/mini_portile/mini_portile.rb:334:inexecute' /usr/local/lib/ruby/gems/2.1.0/gems/mini_portile-0.7.0.rc4/lib/mini_portile/mini_portile.rb:108:in
compile' /usr/local/lib/ruby/gems/2.1.0/gems/mini_portile-0.7.0.rc4/lib/mini_portile/mini_portile.rb:147:incook' extconf.rb:268:in
block in process_recipe' extconf.rb:167:intap' extconf.rb:167:in
process_recipe' extconf.rb:455:in `'extconf failed, exit code 1
gem files remain installed in /usr/local/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.5 inspection. results logged /usr/local/lib/ruby/gems/2.1.0/extensions/x86_64-linux/2.1.0-static/nokogiri-1.6.5/gem_make.out
Comments
Post a Comment