【问题标题】:ActiveMq C++ client install says APR is not installed, why?ActiveMq C++ 客户端安装说 APR 没有安装,为什么?
【发布时间】:2011-10-31 18:12:58
【问题描述】:

我正在尝试安装 ActiveMQ C++ 客户端安装 (CMS)

我在尝试配置时收到以下错误。

configure: WARNING: APR not found
The Apache Portable Runtime (APR) library cannot be found.
Please install APR on this system and supply the appropriate
--with-apr option to 'configure'
configure: error: no suitable APR found

我确实安装了 apr 和 apr-util,如下所示:

~/activemq-cpp-library-3.3.0 $ rpm -qa|grep apr
apr-1.2.7-11.el5_6.5
apr-devel-1.2.7-11.el5_6.5
apr-1.2.7-11.el5_6.5
apr-util-1.2.7-11.el5_5.2
xorg-x11-drv-dynapro-1.1.0-2
apr-util-1.2.7-11.el5_5.2
apr-devel-1.2.7-11.el5_6.5

我可以添加前缀 --with-apr 来配置它,但我不知道路径。

当我这样做时

$ locate apr | less

它 greps 包含 apr 的所有内容。

我该如何解决这个问题?

【问题讨论】:

  • 在 debian 派生系统上,您通常还需要 -dev 包来获取标头等。看看apache.org/dist/apr/binaries/rpm/i386,对于基于红帽的系统,它似乎可能是-devel
  • 我确实安装了 apr-devel。见编辑。

标签: c++ c linux installation activemq


【解决方案1】:

ActiveMQ-CPP 需要 APR 和 APR-Util 1.3 或更高版本,您可以在 README 文件中找到这些以及其他所需的依赖项。

【讨论】:

  • 是的,所以我必须手动下载 apr-1-4-5 和 apr-util,安装它们并使用此版本安装 c++ 库。这是一个痛苦的过程。
猜你喜欢
  • 1970-01-01
  • 2013-06-24
  • 2022-12-15
  • 2014-06-09
  • 2018-09-26
  • 1970-01-01
  • 2016-11-29
  • 2021-04-13
  • 2015-09-06
相关资源
最近更新 更多