【发布时间】: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