【发布时间】:2013-01-03 00:39:29
【问题描述】:
我需要在我不是 root 的 SuSE linux 系统上构建 log4cxx 库。包管理器 zypper 显然不知道 log4cxx。
我下载log4cxx和try to build with autotools
./configure
checking for APR... no
configure: error: APR could not be located. Please use the --with-apr option.
然后我搜索libapr:
find / -name libapr*
/usr/share/doc/packages/libapr-util1
/usr/share/doc/packages/libapr1
/usr/lib64/libaprutil-1.so.0.3.12
/usr/lib64/libapr-1.so.0.4.5
/usr/lib64/libaprutil-1.so.0
/usr/lib64/libapr-1.so.0
所以我试试
./configure --with-apr=/usr/lib64/libapr-1.so.0
configure: error: the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file.
--with-apr=/usr/lib64/libapr-1.so.0.4.5 和 --with-apr=/usr/lib64/ 也是如此。
./configure 查找哪个文件? --with-apr 期待什么?两个*.so.* 文件之一是所需的库吗?
【问题讨论】:
标签: c++ shared-libraries autotools suse log4cxx