我试图找出我目前安装的版本。 OS X 山狮 (10.8.2)
提前致谢!
最佳答案
另一种选择是运行 xmllint
和 xsltproc
与 --version
旗帜:
$ 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
这意味着我正在运行 libxml2 2.9.0、libxslt 1.1.28 和 libexslt 0.8.17。
关于macos - 如何判断 OS X 上安装了哪个版本的 libxml2 和 libxslt?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15554321/