2011-10-31 55 views
1

我试图安装ActiveMQ C++客户端安装(CMS)ActiveMq C++客户端安装说APR未安装,为什么?

我收到以下错误,当我尝试配置。

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 

它里grep有四月在它的一切。

我该如何解决这个问题?

+0

在debian派生的系统上,您通常还需要'-dev'包来获取标头等。看看http://www.apache.org/dist/apr/binaries/rpm/i386/,它似乎可以用于基于红帽子系统的'-devel'。 – user786653

+0

我确实安装了apr-devel。请参阅编辑。 – DarthVader

回答

0

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

+0

是的,所以我不得不手动下载apr-1-4-5和apr-util,安装它们并安装这个版本的C++库。这是一个痛苦的过程。 – DarthVader