Skip to content

ERROR: Error installing libxml-ruby: ERROR: Failed to build gem native extension #315

@DavidIValencia

Description

@DavidIValencia

Error installing version 5.0.0. ruby version '2.3.1' using rvm

→ gem install libxml-ruby -v '3.0.0'
Building native extensions. This could take a while...
ERROR: Error installing libxml-ruby:
ERROR: Failed to build gem native extension.

current directory: /Users/David/.rvm/gems/ruby-2.3.1/gems/libxml-ruby-3.0.0/ext/libxml

/Users/David/.rvm/rubies/ruby-2.3.1/bin/ruby -r ./siteconf20170721-35283-1f8lwpv.rb extconf.rb
checking for libxml/xmlversion.h in /opt/include/libxml2,/opt/local/include/libxml2,/usr/local/include/libxml2,/usr/include/libxml2... no
*** 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
--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=/Users/David/.rvm/rubies/ruby-2.3.1/bin/$(RUBY_BASE_NAME)
--with-xml2-config
--without-xml2-config
--with-xml2-dir
--without-xml2-dir
--with-xml2-include
--without-xml2-include=${xml2-dir}/include
--with-xml2-lib
--without-xml2-lib=${xml2-dir}/lib
extconf failure: need libxml2.

Install the library or try one of the following options to extconf.rb:

  --with-xml2-config=/path/to/xml2-config
  --with-xml2-dir=/path/to/libxml2
  --with-xml2-lib=/path/to/libxml2/lib
  --with-xml2-include=/path/to/libxml2/include

To see why this extension failed to compile, please check the mkmf.log which can be found here:

/Users/David/.rvm/gems/ruby-2.3.1/extensions/x86_64-darwin-15/2.3.0/libxml-ruby-3.0.0/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /Users/David/.rvm/gems/ruby-2.3.1/gems/libxml-ruby-3.0.0 for inspection.
Results logged to /Users/David/.rvm/gems/ruby-2.3.1/extensions/x86_64-darwin-15/2.3.0/libxml-ruby-3.0.0/gem_make.out

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions