linux下安装Subversion遇到关于BerkeleyDB问题及解决方法

本文记录了解决Subversion安装过程中遇到的BerkeleyDB支持缺失问题。通过正确配置--with-berkeley-db选项并重新安装apr-util,最终成功完成了Subversion的安装。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

安装subversion在configure的时候提示没有BerkeleyDB支持,于是想到然的下载BerkeleyDB然后安装之

在subversion的configure里直接加上—with-berkeley-db=/usr/local/bdb/没想到没有通过提示选项语法错误

于是好好看了下configure -h帮助选项

--with-berkeley-db=[HEADER:INCLUDES:LIB_SEARCH_DIRS:LIBS]
                          The Subversion Berkeley DB based filesystem library
                          requires Berkeley DB $db_version or newer. If you
                          specify `--without-berkeley-db', that library will
                          not be built. If you omit the argument of this
                          option completely, the configure script will use
                          Berkeley DB used by APR-UTIL.

 

先是对着写了个--with-berkeley-db=db.h:/usr/local/bdb/include:/usr/local/bdb/lib:db

还是报错,提示没有发现,想骂人于是干脆不写,以为apr-util可以自己完成,结果还是不可以,看了下apr-util的configure -h信息

于是去重新安装了下apr-util加上了—with-berkeley-db=/usr/local/bdb/选项

再次配置subversion,如下

configure --prefix=/usr/local/subversion --with-apxs=/usr/local/httpd/bin/apxs --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util/ --with-sqlite=/usr/local/sqlite/ --with-berkeley-db

OK!configure通过,make,make install通过奶奶的,看来装程序前configure的帮助信息还真的仔细看看了!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值