您的位置:首页 > 运维架构 > Linux

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

2009-11-20 17:23 1236 查看
安装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的帮助信息还真的仔细看看了!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: