How can I tell what version of libxml2 and libxslt are installed on OS X?

Spanky picture Spanky · Mar 21, 2013 · Viewed 23.9k times · Source

I'm trying to find out what version I currently have installed. OS X Mountain Lion (10.8.2)

Thanks in advance!

Answer

nwellnhof picture nwellnhof · Dec 29, 2013

Another option is to run xmllint and xsltproc with the --version flag:

$ xmllint --version
xmllint: using libxml version 20900
   compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 FTP HTTP DTDValid HTML Legacy C14N Catalog XPath XPointer XInclude ISO8859X Unicode Regexps Automata Expr Schemas Schematron Modules Debug Zlib
$ xsltproc --version
Using libxml 20900, libxslt 10128 and libexslt 817
xsltproc was compiled against libxml 20900, libxslt 10128 and libexslt 817
libxslt 10128 was compiled against libxml 20900
libexslt 817 was compiled against libxml 20900

This means I'm running libxml2 2.9.0, libxslt 1.1.28, and libexslt 0.8.17.