我需要构建 log4cxx我不是 root 的 SuSE linux 系统上的库。包管理器 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.*
文件所需的库?
最佳答案
您可能需要安装 libapr1-devel
以便您可以针对它进行编译。然后尝试重新运行 ./configure
。
关于c++ - 使用 APR 构建 log4cxx,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14413561/