Source code
Repository
The source is hosted on GitHub. Clone it with:
git clone https://github.com/xmlstarlet/xmlstarlet.git
or browse it online.
Building
Install recent versions of libxml2 and libxslt (including their development headers), then build:
cd xmlstarlet
./autogen.sh
./configure
make
Build tips
- Dependencies are located via
pkg-config. Installpkg-configand the development packages for libxml2 and libxslt (for examplelibxml2-devandlibxslt1-devon Debian/Ubuntu, orlibxml2-develandlibxslt-develon Fedora) andconfigurefinds them automatically — no need to match header versions by hand. - If
pkg-configis unavailable,configurefalls back toxml2-configandxslt-config. To point at a specific build (a custom prefix, or a static build), pass e.g.LIBXML_CONFIG=/path/to/xml2-configandLIBXSLT_CONFIG=/path/to/xslt-configtoconfigure. - Compile against recent stable versions of libxml2 and libxslt. Newer versions of XMLStarlet normally track the latest stable releases.
- On some systems (such as Solaris) you may need to use
gmakeinstead ofmaketo invoke GNU make.
See the repository's README and
issue tracker for further
details and help.