Comments (8)
On linus, usually this is what works for me:
--with-xml2-include=/usr/include/libxml2
from libxml-ruby.
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.
gem install libxml --- --with-xml2-include=/usr/include/libxml2
from libxml-ruby.
Going to close this, let me know if you still have an issue.
from libxml-ruby.
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.
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.
@rubykolaveridi007
Could you please share your experience, how did you fix that issue? I am getting the same error.
from libxml-ruby.
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)
- Could not find a valid gem libxml-ruby-x64-mingw32 for Ruby 3.0 on Windows HOT 2
- Uncaught exception: cannot load such file -- libxml_ruby even if it's installed. HOT 7
- Memory leak in `path` method HOT 5
- Memory leak HOT 2
- Repository website URL (xml4r.github.com) is broken HOT 2
- xmlGetFeaturesList is deprecated HOT 7
- Validating an XML file is well-formed HOT 1
- How close `LibXML::XML::Writer.file`? HOT 2
- Cannot compile gem on Ruby 2.5 HOT 1
- Failed to build gem native extension. HOT 2
- Error parsing documentation when installing libxml-ruby-3.2.3 HOT 8
- New release, pretty please HOT 2
- Can't build with libxml 2.10.3 HOT 3
- Cannot install 3.2.3 due to missing xlink headers HOT 3
- Spurious warning when running with Ruby 3.2: "undefining the allocator of T_DATA class LibXML::XML::Writer" HOT 10
- Can't build with libxml 2.10.4 on Intel Mac HOT 1
- Error compiling ruby_xml_error.c with libxml 2.10.4 on Intel Mac HOT 1
- Error compiling native extension on Intel Mac HOT 2
- New version broke XML::Document.io HOT 8
- Version 5.0.0 breaks in .io method HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libxml-ruby.