-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hello,
I'm having trouble installing nokogiri on Debian Jessie.
(Specifically, on a Qubes 3 Whonix 11 template, but I doubt that
there's anything particularly unique about that setup.) Here's a
paste of what gets displayed in the terminal:
user@host:~$ sudo gem install nokogiri
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
/usr/bin/ruby2.1 extconf.rb
checking if the C compiler accepts ... yes
Building nokogiri using packaged libraries.
checking for gzdopen() in -lz... yes
checking for iconv... yes
************************************************************************
IMPORTANT NOTICE:
Building Nokogiri with a packaged version of libxml2-2.9.2
with the following patches applied:
- 0001-Revert-Missing-initialization-for-the-catalog-module.patch
- 0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch
Team Nokogiri will keep on doing their best to provide security
updates in a timely manner, but if this is a concern for you and want
to use the system library instead; abort this installation process and
reinstall nokogiri as follows:
gem install nokogiri -- --use-system-libraries
[--with-xml2-config=/path/to/xml2-config]
[--with-xslt-config=/path/to/xslt-config]
If you are using Bundler, tell it to use the option:
bundle config build.nokogiri --use-system-libraries
bundle install
Note, however, that nokogiri is not fully compatible with arbitrary
versions of libxml2 provided by OS/package vendors.
************************************************************************
Extracting libxml2-2.9.2.tar.gz into
tmp/x86_64-pc-linux-gnu/ports/libxml2/
2.9.2... OK
Running patch with
/var/lib/gems/2.1.0/gems/nokogiri-1.6.6.2/ports/patches/libxml2/0001-Rev
ert-Missing-initialization-for-the-catalog-module.patch...
Running 'patch' for libxml2 2.9.2... OK
Running patch with
/var/lib/gems/2.1.0/gems/nokogiri-1.6.6.2/ports/patches/libxml2/0002-Fix
- -missing-entities-after-CVE-2014-3660-fix.patch...
Running 'patch' for libxml2 2.9.2... OK
Running 'configure' for libxml2 2.9.2... ERROR, review
'/var/lib/gems/2.1.0/gems/nokogiri-1.6.6.2/ext/nokogiri/tmp/x86_64-pc-li
nux-gnu/ports/libxml2/2.9.2/configure.log'
to see what happened. Last lines are:
========================================================================
configure: error: invalid variable name: `CFLAGS\'
========================================================================
*** 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/bin/ruby2.1
--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
/var/lib/gems/2.1.0/gems/mini_portile-0.7.0.rc2/lib/mini_portile/mini_po
rtile.rb:360:in
`block in execute': Failed to complete configure task (RuntimeError)
from
/var/lib/gems/2.1.0/gems/mini_portile-0.7.0.rc2/lib/mini_portile/mini_po
rtile.rb:331:in
`chdir'
from
/var/lib/gems/2.1.0/gems/mini_portile-0.7.0.rc2/lib/mini_portile/mini_po
rtile.rb:331:in
`execute'
from
/var/lib/gems/2.1.0/gems/mini_portile-0.7.0.rc2/lib/mini_portile/mini_po
rtile.rb:101:in
`configure'
from
/var/lib/gems/2.1.0/gems/mini_portile-0.7.0.rc2/lib/mini_portile/mini_po
rtile.rb:143:in
`cook'
from extconf.rb:278:in `block in process_recipe'
from extconf.rb:177:in `tap'
from extconf.rb:177:in `process_recipe'
from extconf.rb:475:in `<main>'
extconf failed, exit code 1
Gem files will remain installed in
/var/lib/gems/2.1.0/gems/nokogiri-1.6.6.2 for inspection.
Results logged to
/var/lib/gems/2.1.0/extensions/x86_64-linux/2.1.0/nokogiri-1.6.6.2/gem_m
ake.out
Any suggestions on what might be causing this, and/or what the fix
might be?
Thanks.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJV5OvEAAoJEAHN/EbZ1y06BxwP/0O0IBN7wkTlkYtoXjB+6+pn
CnG+aVOaj+aqywqKSp2oJFchpaYTtj9GRzDzA8pOabnXihU43xy8I3msFxGBKeDu
lDyV4gW7Ijy5FBxM3e1xjZHiJXoYxkTURevVwOy+hkAz8RK8Z2kIG8SgnCRJCBW9
jacASbbUqBrTaokSY+3x/wr9C5V2Swz3CP14r8N52CeH+8gqoQeyomNR5EBYkwtQ
zPPwRU9EGi6DYy0tNA8ATjFYhc/A0DNc5Gn1UdgIRQkFobxwopc6WBb+RpEc57ko
HbBF8uIROOml3MPKRheTNFBLkkgeQxRaEuCXU/f7oRJDYbI1uqxh/jQDhzHbO0lo
p2RL3Ysq0MjJYIedJpSLWlB36fcl1UORDXoyD4F2ZNvOMXxf/8uOzF7gfFpC3nBk
PA/RZw9obqeB6ouTi1uLDAwExoGL7xE157h0irYKNJElpRUnF98of7s990MUjJgz
jLvb73ErHsjFB7xlRmZIIIi1p4ACOdLZQRk0Ll5t1rUHn8tD57Uv9nrYa3UC3e+b
l8+4YDNZ+TC441Kh6/GjyQT7b2itnq1mfDYBiP66ul3sSwtNgIpT0/6dlOt4wjI3
Vb3PKAm3lIHSeBe2VG/WC6qhB0REbU3gdJTfpty++Oy3mZpPPz3rbxMbseC6qf1A
h90eCfV+dwJiPffNEPDD
=FO7y
-----END PGP SIGNATURE-----