Git Product home page Git Product logo

Comments (8)

cfis avatar cfis commented on August 30, 2024

On linus, usually this is what works for me:

--with-xml2-include=/usr/include/libxml2

from libxml-ruby.

user21 avatar user21 commented on August 30, 2024

Cfis thank you for reply! But i don't know, how to passing that option to gem install command(( Could you please give me example?

from libxml-ruby.

cfis avatar cfis commented on August 30, 2024

gem install libxml --- --with-xml2-include=/usr/include/libxml2

from libxml-ruby.

cfis avatar cfis commented on August 30, 2024

Going to close this, let me know if you still have an issue.

from libxml-ruby.

elgalu avatar elgalu commented on August 30, 2024

Thanks @cfis works great. Just note a small typo; there is an extra dash '-' and wrong gem name, working command with full log:

rvm use 1.9.3
#=> Using /home/user/.rvm/gems/ruby-1.9.3-p448

gem install libxml-ruby -- --with-xml2-include=/usr/include/libxml2
#=> Building native extensions with: '--with-xml2-include=/usr/include/libxml2' .... 
#=> Successfully installed libxml-ruby-2.7.0

from libxml-ruby.

rubykolaveridi007 avatar rubykolaveridi007 commented on August 30, 2024

can't install libxml-ruby - on windows

C:\Users\Downloads>gem install libxml-ruby-2.7.0.gem -- --with-xml2-in
clude=/usr/include/libxml2
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing libxml-ruby-2.7.0.gem:
ERROR: Failed to build gem native extension.

    C:/Ruby193/bin/ruby.exe extconf.rb --with-xml2-include=/usr/include/libx

ml2
checking for socket() in -lsocket... no
checking for gethostbyname() in -lnsl... no
checking for atan() in -lm... yes
checking for inflate() in -lz... no
checking for inflate() in -lzlib... no
checking for inflate() in -lzlib1... no
checking for inflate() in -llibz... 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
--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=C:/Ruby193/bin/ruby
--with-iconv-dir
--without-iconv-dir
--with-iconv-include
--without-iconv-include=${iconv-dir}/include
--with-iconv-lib
--without-iconv-lib=${iconv-dir}/lib
--with-zlib-dir
--without-zlib-dir
--with-zlib-include
--without-zlib-include=${zlib-dir}/include
--with-zlib-lib
--without-zlib-lib=${zlib-dir}/lib
--with-socketlib
--without-socketlib
--with-nsllib
--without-nsllib
--with-mlib
--without-mlib
--with-zlib
--without-zlib
--with-zliblib
--without-zliblib
--with-zlib1lib
--without-zlib1lib
--with-libzlib
--without-libzlib
extconf failure: need zlib

Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/libxml-ru
by-2.7.0 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/libxml-ruby-2.7.0/ext/libx

ml/gem_make.out

from libxml-ruby.

musreg avatar musreg commented on August 30, 2024

@rubykolaveridi007
Could you please share your experience, how did you fix that issue? I am getting the same error.

from libxml-ruby.

taogone avatar taogone commented on August 30, 2024

I have same error like bellows. ㅠㅠ

C:\Bitnami\redmine-3.1.1-1\apps\redmine\htdocs\plugins>gem install libxml-ruby
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing libxml-ruby:
ERROR: Failed to build gem native extension.

C:/Bitnami/redmine-3.1.1-1/ruby/bin/ruby.exe extconf.rb

checking for socket() in -lsocket... no
checking for gethostbyname() in -lnsl... no
checking for atan() in -lm... yes
checking for inflate() in -lz... no
checking for inflate() in -lzlib... no
checking for inflate() in -lzlib1... no
checking for inflate() in -llibz... 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
--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=C:/Bitnami/redmine-3.1.1-1/ruby/bin/ruby
--with-iconv-dir
--without-iconv-dir
--with-iconv-include
--without-iconv-include=${iconv-dir}/include
--with-iconv-lib
--without-iconv-lib=${iconv-dir}/
--with-zlib-dir
--without-zlib-dir
--with-zlib-include
--without-zlib-include=${zlib-dir}/include
--with-zlib-lib
--without-zlib-lib=${zlib-dir}/
--with-socketlib
--without-socketlib
--with-nsllib
--without-nsllib
--with-mlib
--without-mlib
--with-zlib
--without-zlib
--with-zliblib
--without-zliblib
--with-zlib1lib
--without-zlib1lib
--with-libzlib
--without-libzlib
extconf failure: need zlib

Gem files will remain installed in C:/Bitnami/redmine-3.1.1-1/ruby/lib/ruby/gems/2.0.0/gems/libxml-ruby-2.8.0 for inspection.
Results logged to C:/Bitnami/redmine-3.1.1-1/ruby/lib/ruby/gems/2.0.0/gems/libxml-ruby-2.8.0/ext/libxml/gem_make.out

from libxml-ruby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.