libzdb:A small, easy to use Open Source Database Connection Pool Library,是Linux下的一个开源的数据库连接池库。具体有什么用我不管,我这里只告诉大家怎么安装。
本文在Ubuntu14.04和CentOS6.2上测试通过,理论上支持所有Linux。
首先去官网下载:
http://www.tildeslash.com/libzdb
Github地址:
https://github.com/haiwen/libzdb
下载后解压放到指定文件夹。自己指定。
然后进入文件夹。
./configure
make
make install
完成安装。
可能遇到的问题:
No available database found or selected. Try configure --help
那是因为你没装数据库,你可以选择安装一个数据库,或者直接打开configure,找到下面的判断,删除即可。(就是这么暴力的解决)
# Test if any database system was found if test "xno" = "x$postgresql" -a "xno" = "x$mysql" -a "xno" = "x$sqlite" -a "xno" = "x$oracle"; then as_fn_error $? "No available database found or selected. Try configure --help" "$LINENO" 5 fi
至于直接删除后编译通过后能不能用,我还没试过。
其实,最简单的安装方法:
apt-get install libzdb-dev
您好,我在redhat上安装libzdb,./configure时报:
configure: WARNING: pg_config is required to build libzdb with postgresql
checking for SQLite3… yes
checking for library containing sqlite3_open… no
checking for oracle… checking for Oracle OCI headers in /usr/lib/oracle/11.2/client64//rdbms/public… not found
checking if Oracle support is enabled… no
configure: error: No available database found or selected. Try configure –help
我试着您的方法修改 configure 文件后,make无法执行,想问下您在怎么解决的呢?请前辈指导,谢谢
最好的方法就是提示缺什么你就装什么,我那个只是临时解决方案,后来还是把MySQ给装上了。