0

在虚拟机上使用 vagrant 在 Ubuntu 12.04 中运行 Berkley DB XML 2.5.16 的构建脚本时收到错误:

../include/xqilla/framework/XPath2MemoryManager.hpp:90:11: error: 'ptrdiff_t' does not name a type
make[1]: *** [ReferenceCounted.lo] Error 1
make[1]: Leaving directory `/usr/share/dbxml-2.5.16/xqilla/build'
4

1 回答 1

4

解决方法是将第 26 行之后的以下行添加到文件 XPath2MemoryManager.hpp 中:

#include <cstddef>

该文件的完整路径是:

/usr/share/dbxml-2.5.16/xqilla/include/xqilla/framework/XPath2MemoryManager.hpp

归功于http://tlmaloney.ruhoh.com/sysadmin/installing-bdb-xml-in-ubuntu/

于 2013-01-16T22:21:15.653 回答