Skip to content

Instantly share code, notes, and snippets.

@JoeDupuis
Created May 29, 2018 15:50
Show Gist options
  • Save JoeDupuis/7d096886a72c4c2b9fc68ce195a7cf8c to your computer and use it in GitHub Desktop.
Save JoeDupuis/7d096886a72c4c2b9fc68ce195a7cf8c to your computer and use it in GitHub Desktop.
[0] > bin/shell
(xylio-pbndb)[development]:~/.../internal/pbndb> cd api
(xylio-pbndb)[development]:~/.../pbndb/api> bundle install --path vendor/bundle/
Fetching gem metadata from https://rubygems.org/..........
Using rake 12.3.1
Using concurrent-ruby 1.0.5
Using i18n 1.0.0
Using minitest 5.11.3
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using activesupport 5.1.6
Using builder 3.2.3
Using erubi 1.7.1
Using mini_portile2 2.3.0
Fetching nokogiri 1.8.2
Installing nokogiri 1.8.2 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/home/twistedjoe/Documents/Business/Xylio/project/internal/pbndb/api/vendor/bundle/ruby/2.4.0/gems/nokogiri-1.8.2/ext/nokogiri
/nix/store/x932mdkafx2c4dzqznj7cwa6974lywr0-ruby-2.4.4/bin/ruby -r
./siteconf20180529-26358-f4r9ur.rb extconf.rb
checking if the C compiler accepts ... yes
Building nokogiri using packaged libraries.
Using mini_portile version 2.3.0
checking for gzdopen() in -lz... yes
checking for iconv... yes
************************************************************************
IMPORTANT NOTICE:
Building Nokogiri with a packaged version of libxml2-2.9.7.
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.7.tar.gz into
tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.9.7... OK
Running 'configure' for libxml2 2.9.7... OK
Running 'compile' for libxml2 2.9.7... ERROR, review
'/home/twistedjoe/Documents/Business/Xylio/project/internal/pbndb/api/vendor/bundle/ruby/2.4.0/gems/nokogiri-1.8.2/ext/nokogiri/tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.9.7/compile.log'
to see what happened. Last lines are:
========================================================================
CC entities.lo
CC encoding.lo
CC error.lo
CC parserInternals.lo
CC parser.lo
CC tree.lo
CC hash.lo
CC list.lo
CC xmlIO.lo
xmlIO.c: In function ‘xmlXzfileClose’:
xmlIO.c:1357:52: error: ‘LZMA_OK’ undeclared (first use in this function); did
you mean ‘Z_OK’?
ret = (__libxml2_xzclose((xzFile) context) == LZMA_OK ) ? 0 : -1;
^~~~~~~
Z_OK
xmlIO.c:1357:52: note: each undeclared identifier is reported only once for
each function it appears in
make[2]: *** [Makefile:1249: xmlIO.lo] Error 1
make[2]: Leaving directory
'/home/twistedjoe/Documents/Business/Xylio/project/internal/pbndb/api/vendor/bundle/ruby/2.4.0/gems/nokogiri-1.8.2/ext/nokogiri/tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.9.7/libxml2-2.9.7'
make[1]: *** [Makefile:1441: all-recursive] Error 1
make[1]: Leaving directory
'/home/twistedjoe/Documents/Business/Xylio/project/internal/pbndb/api/vendor/bundle/ruby/2.4.0/gems/nokogiri-1.8.2/ext/nokogiri/tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.9.7/libxml2-2.9.7'
make: *** [Makefile:860: all] Error 2
========================================================================
*** 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=/nix/store/x932mdkafx2c4dzqznj7cwa6974lywr0-ruby-2.4.4/bin/$(RUBY_BASE_NAME)
--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
/home/twistedjoe/Documents/Business/Xylio/project/internal/pbndb/api/vendor/bundle/ruby/2.4.0/gems/mini_portile2-2.3.0/lib/mini_portile2/mini_portile.rb:402:in
`block in execute': Failed to complete compile task (RuntimeError)
from
/home/twistedjoe/Documents/Business/Xylio/project/internal/pbndb/api/vendor/bundle/ruby/2.4.0/gems/mini_portile2-2.3.0/lib/mini_portile2/mini_portile.rb:373:in
`chdir'
from
/home/twistedjoe/Documents/Business/Xylio/project/internal/pbndb/api/vendor/bundle/ruby/2.4.0/gems/mini_portile2-2.3.0/lib/mini_portile2/mini_portile.rb:373:in
`execute'
from
/home/twistedjoe/Documents/Business/Xylio/project/internal/pbndb/api/vendor/bundle/ruby/2.4.0/gems/mini_portile2-2.3.0/lib/mini_portile2/mini_portile.rb:115:in
`compile'
from
/home/twistedjoe/Documents/Business/Xylio/project/internal/pbndb/api/vendor/bundle/ruby/2.4.0/gems/mini_portile2-2.3.0/lib/mini_portile2/mini_portile.rb:154:in
`cook'
from extconf.rb:365:in `block (2 levels) in process_recipe'
from extconf.rb:257:in `block in chdir_for_build'
from extconf.rb:256:in `chdir'
from extconf.rb:256:in `chdir_for_build'
from extconf.rb:364:in `block in process_recipe'
from extconf.rb:262:in `tap'
from extconf.rb:262:in `process_recipe'
from extconf.rb:551:in `<main>'
To see why this extension failed to compile, please check the mkmf.log which
can be found here:
/home/twistedjoe/Documents/Business/Xylio/project/internal/pbndb/api/vendor/bundle/ruby/2.4.0/extensions/x86_64-linux/2.4.0/nokogiri-1.8.2/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in
/home/twistedjoe/Documents/Business/Xylio/project/internal/pbndb/api/vendor/bundle/ruby/2.4.0/gems/nokogiri-1.8.2
for inspection.
Results logged to
/home/twistedjoe/Documents/Business/Xylio/project/internal/pbndb/api/vendor/bundle/ruby/2.4.0/extensions/x86_64-linux/2.4.0/nokogiri-1.8.2/gem_make.out
An error occurred while installing nokogiri (1.8.2), and Bundler
cannot continue.
Make sure that `gem install nokogiri -v '1.8.2'` succeeds before bundling.
In Gemfile:
rails was resolved to 5.1.6, which depends on
actioncable was resolved to 5.1.6, which depends on
actionpack was resolved to 5.1.6, which depends on
actionview was resolved to 5.1.6, which depends on
rails-dom-testing was resolved to 2.0.3, which depends on
nokogiri
<5>(xylio-pbndb)[development]:~/.../pbndb/api> tmux save-buffer foo.txt
(xylio-pbndb)[development]:~/.../pbndb/api> ls
'#README.md#' Gemfile README.md app config db lib public test vendor
API.md Gemfile.lock Rakefile bin config.ru foo.txt log spec tmp
(xylio-pbndb)[development]:~/.../pbndb/api> cat foo.^C
<130>(xylio-pbndb)[development]:~/.../pbndb/api> tmux show-buffer
/home/twistedjoe/Documents/Business/Xylio/project/internal/pbndb/api/README.md
(xylio-pbndb)[development]:~/.../pbndb/api> tmux show-buffer -b n
no buffer n
<1>(xylio-pbndb)[development]:~/.../pbndb/api> tmux show-buffer -b 0
no buffer 0
<1>(xylio-pbndb)[development]:~/.../pbndb/api> tmux show-buffer -b
tmux: option requires an argument -- b
usage: show-buffer [-b buffer-name]
<1>(xylio-pbndb)[development]:~/.../pbndb/api> tmux show-buffer -b *
usage: show-buffer [-b buffer-name]
<1>(xylio-pbndb)[development]:~/.../pbndb/api> tmux show-buffer -b *^C
<130>(xylio-pbndb)[development]:~/.../pbndb/api> tmux list-buffers
buffer0000: 78 bytes: "/home/twistedjoe/Documents/Business/Xylio/project/internal/pbndb/api/README.md"
(xylio-pbndb)[development]:~/.../pbndb/api>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment