加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c – 使用APR构建log4cxx

发布时间:2020-12-16 09:41:59 所属栏目:百科 来源:网络整理
导读:我需要在SuSE linux系统上构建 log4cxx库,我不是root用户.包管理器zypper显然不了解log4cxx. 我下载log4cxx和try to build with autotools ./configurechecking for APR... noconfigure: error: APR could not be located. Please use the --with-apr option
我需要在SuSE linux系统上构建 log4cxx库,我不是root用户.包管理器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.*文件中的一个是所需的库吗?

解决方法

在 software.opensuse.org,有人为最近版本的openSUSE以及SLE在 liblog4cxx10开发了包.也许这对你有用,而不是建立你自己的.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读