macos - 如何判断 OS X 上安装了哪个版本的 libxml2 和 libxslt?

标签 macos libxml2 libxslt

我试图找出我目前安装的版本。 OS X 山狮 (10.8.2)

提前致谢!

最佳答案

另一种选择是运行 xmllintxsltproc--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/

相关文章:

objective-c - lldb 跳过 objc_msgSend

ios - 可以在 cocoapods 中跳过特定版本的 pod

python - 在 Mac OS X 10.6.7、Python 2.7.1 上运行 Virtualenv 1.6 时

c++ - 将静态库与其他静态库链接

html - 使用 libxml2 解析 HTML 会产生实体引用问题

node.js - sudo npm 失败,env : node: No such file or directory

python - xml.etree.ElementTree 模块是否有等效项?

python - 如何在 windows7 上安装 libxslt?

plone - 升级到 Plone 4.2 时,lxml 2.3.4 应该使用哪些版本的 libxml2 和 libxslt?

perl - XML::LibXSLT 无法在 Heroku 上安装