Installation¶
RubyGems¶
Bundler¶
Add to your Gemfile:
Specifying libxml2 Location¶
If the build process cannot find libxml2, specify the location of xml2-config:
Or with Bundler:
You can also specify directories directly:
--with-xml2-dir=/path/to/libxml2
--with-xml2-lib=/path/to/libxml2/lib
--with-xml2-include=/path/to/libxml2/include
Platform Notes¶
Linux / macOS¶
A C compiler is required to build the native extension. libxml2 development headers must be installed:
Windows¶
Install the libxml-ruby gem with a MinGW toolchain via RubyInstaller or MSYS2.
Source Code¶
libxml-ruby's source code is on GitHub.