在virtualbox上使用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'发布于 2013-01-17 06:21:16
解决方法是在文件XPath2MemoryManager.hpp的第26行之后添加以下行:
#include <cstddef>文件的完整路径为:
/usr/share/dbxml-2.5.16/xqilla/include/xqilla/framework/XPath2MemoryManager.hpp归功于http://tlmaloney.ruhoh.com/sysadmin/installing-bdb-xml-in-ubuntu/
https://stackoverflow.com/questions/14368975
复制相似问题