Skip to content

Instantly share code, notes, and snippets.

Created May 26, 2016 10:42
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 anonymous/7e676e8215780d02c87f9618a77e4faa to your computer and use it in GitHub Desktop.
Save anonymous/7e676e8215780d02c87f9618a77e4faa to your computer and use it in GitHub Desktop.
p1030@p1030:~/rails/redmine$ gem install rails
Fetching: activesupport-4.2.6.gem (100%)
Successfully installed activesupport-4.2.6
Fetching: pkg-config-1.1.7.gem (100%)
Successfully installed pkg-config-1.1.7
Fetching: nokogiri-1.6.8.rc3.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
/home/.rvm/rubies/ruby-2.2.0/bin/ruby extconf.rb
Using pkg-config version 1.1.7
checking if the C compiler accepts ... yes
Building nokogiri using packaged libraries.
Using mini_portile version 2.1.0
checking for gzdopen() in -lz... yes
checking for iconv... yes
************************************************************************
IMPORTANT NOTICE:
Building Nokogiri with a packaged version of libxml2-2.9.3.
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.3.tar.gz into tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.9.3... OK
Running 'configure' for libxml2 2.9.3... OK
Running 'compile' for libxml2 2.9.3... OK
Running 'install' for libxml2 2.9.3... OK
Activating libxml2 2.9.3 (from /home/.rvm/gems/ruby-2.2.0/gems/nokogiri-1.6.8.rc3/ports/x86_64-unknown-linux-gnu/libxml2/2.9.3)...
************************************************************************
IMPORTANT NOTICE:
Building Nokogiri with a packaged version of libxslt-1.1.28
with the following patches applied:
- 0001-Adding-doc-update-related-to-1.1.28.patch
- 0002-Fix-a-couple-of-places-where-f-printf-parameters-wer.patch
- 0003-Initialize-pseudo-random-number-generator-with-curre.patch
- 0004-EXSLT-function-str-replace-is-broken-as-is.patch
- 0006-Fix-str-padding-to-work-with-UTF-8-strings.patch
- 0007-Separate-function-for-predicate-matching-in-patterns.patch
- 0008-Fix-direct-pattern-matching.patch
- 0009-Fix-certain-patterns-with-predicates.patch
- 0010-Fix-handling-of-UTF-8-strings-in-EXSLT-crypto-module.patch
- 0013-Memory-leak-in-xsltCompileIdKeyPattern-error-path.patch
- 0014-Fix-for-bug-436589.patch
- 0015-Fix-mkdir-for-mingw.patch
- 0016-Fix-for-type-confusion-in-preprocessing-attributes.patch
- 0017-Updated-config.guess.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
************************************************************************
Extracting libxslt-1.1.28.tar.gz into tmp/x86_64-unknown-linux-gnu/ports/libxslt/1.1.28... OK
Running git apply with /home/.rvm/gems/ruby-2.2.0/gems/nokogiri-1.6.8.rc3/patches/libxslt/0001-Adding-doc-update-related-to-1.1.28.patch... ERROR, review '/home/.rvm/gems/ruby-2.2.0/gems/nokogiri-1.6.8.rc3/ext/nokogiri/tmp/x86_64-unknown-linux-gnu/ports/libxslt/1.1.28/patch.log' to see what happened. Last lines are:
========================================================================
========================================================================
*** 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=/home/.rvm/rubies/ruby-2.2.0/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/.rvm/gems/ruby-2.2.0/gems/mini_portile2-2.1.0/lib/mini_portile2/mini_portile.rb:366:in `block in execute': Failed to complete patch task (RuntimeError)
from /home/.rvm/gems/ruby-2.2.0/gems/mini_portile2-2.1.0/lib/mini_portile2/mini_portile.rb:337:in `chdir'
from /home/.rvm/gems/ruby-2.2.0/gems/mini_portile2-2.1.0/lib/mini_portile2/mini_portile.rb:337:in `execute'
from /home/.rvm/gems/ruby-2.2.0/gems/mini_portile2-2.1.0/lib/mini_portile2/mini_portile.rb:71:in `block in apply_patch'
from /home/.rvm/gems/ruby-2.2.0/gems/mini_portile2-2.1.0/lib/mini_portile2/mini_portile.rb:81:in `call'
from /home/.rvm/gems/ruby-2.2.0/gems/mini_portile2-2.1.0/lib/mini_portile2/mini_portile.rb:81:in `apply_patch'
from /home/.rvm/gems/ruby-2.2.0/gems/mini_portile2-2.1.0/lib/mini_portile2/mini_portile.rb:87:in `block in patch'
from /home/.rvm/gems/ruby-2.2.0/gems/mini_portile2-2.1.0/lib/mini_portile2/mini_portile.rb:85:in `each'
from /home/.rvm/gems/ruby-2.2.0/gems/mini_portile2-2.1.0/lib/mini_portile2/mini_portile.rb:85:in `patch'
from /home/.rvm/gems/ruby-2.2.0/gems/mini_portile2-2.1.0/lib/mini_portile2/mini_portile.rb:148:in `cook'
from extconf.rb:328:in `block (2 levels) in process_recipe'
from extconf.rb:221:in `block in chdir_for_build'
from extconf.rb:220:in `chdir'
from extconf.rb:220:in `chdir_for_build'
from extconf.rb:327:in `block in process_recipe'
from extconf.rb:226:in `tap'
from extconf.rb:226:in `process_recipe'
from extconf.rb:519:in `<main>'
extconf failed, exit code 1
Gem files will remain installed in /home/.rvm/gems/ruby-2.2.0/gems/nokogiri-1.6.8.rc3 for inspection.
Results logged to /home/.rvm/gems/ruby-2.2.0/extensions/x86_64-linux/2.2.0/nokogiri-1.6.8.rc3/gem_make.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment