Berkeley DB -ldb_cxx not found

[亡魂溺海] 提交于 2020-01-05 04:40:11

问题


I'm building an application that requires Berkeley DB (http://www.resiprocate.org). I am building on OS X, and I had to install Berkeley DB since the machine did not already have it. However, the reSIProcate package I am trying to build cannot find the db_cxx library (-ldb_cxx). The installed Berkeley DB lib directory only has the following files:

libdb-5.3.a
libdb-5.3.dylib
libdb-5.4.la
libdb.a

What exactly is db_cxx...is -ldb_cxx outdated? Or is there some option I need to specify when installing Berkeley DB to create and install a db_cxx library?


回答1:


libdb-cxx is API needed for c++, it is not being built by default. To build libdb-cxx, go to the directory where you had built Berkeley Db, then

cd build_unix
../dist/configure --enable-cxx
make
sudo make install


来源:https://stackoverflow.com/questions/11403513/berkeley-db-ldb-cxx-not-found

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!