问题描述
当尝试构建Unix QuickFIX引擎时,./bootstrap之后出现以下错误
When trying to build the Unix QuickFIX engine, I get the following error after ./bootstrap
warning:macro 'AM_PATH_XML2' not found in library
据我了解,libxml2已经随XCode OS X Mountain Lion一起提供.我发现一个答案建议下载libxml2-dev,尽管我无法使用HomeBrew找到该软件包.
我对在OS X和Xcode上进行编程以及移植Unix应用程序还比较陌生,所以我不确定自己到底有什么.
As I understand, libxml2 already comes with XCode OS X Mountain Lion. An answer I found suggested to download libxml2-dev, although I could not find the package using HomeBrew.
I'm relatively new to programming on OS X and Xcode and porting Unix applications, so I'm not sure exactly what I have yet.
推荐答案
我做了
brew install libxml2
然后随便看看,我在/usr/local/Cellar/libxml2/2.8.0/share/aclocal/libxml.m4
中找到了宏AM_PATH_XML2
.所有这些内容都包含在开发包中,然后将其与我在本地运行的Ubuntu/Vagrant虚拟机进行了比较,可以正常运行,并记住:
Then poking around I found the macro AM_PATH_XML2
in /usr/local/Cellar/libxml2/2.8.0/share/aclocal/libxml.m4
. Which is all the dev package contents, then I compared to my Ubuntu/Vagrant virtual I have locally that was working fine and remembered to:
brew link --force libxml2
将符号链接放入/usr/local/share/aclocal
.
现在我正在构建,但是我还需要汽车制造商,所以要回顾一下
And now I'm building, but I also needed automaker, so to recap
brew install automake autoconf libtool libxml2
brew link libxml2
这篇关于OSX上的libxml2和libxml2-dev的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!