问题描述
因为我需要一个错误修复程序,而该错误修复程序在Ubuntu的Subversion的存储库版本中不可用,所以我从源代码安装它。
在运行./configure
时,出现错误:
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'
or
get it with SVN and put it in a subdirectory of this source:
svn co \
http://svn.apache.org/repos/asf/apr/apr/branches/1.2.x \
apr
Run that right here in the top level of the Subversion tree.
Afterwards, run apr/buildconf in that subdirectory and
then run configure again here.
Whichever of the above you do, you probably need to do
something similar for apr-util, either providing both
--with-apr and --with-apr-util to 'configure', or
getting both from SVN with:
svn co \
http://svn.apache.org/repos/asf/apr/apr-util/branches/1.2.x \
apr-util
configure: error: no suitable apr found
说明:
1)我已经安装了libapr1
2)我无法安装svn客户端,无法按照错误消息中的说明进行操作(apt-get安装svn-未找到软件包-我在source.list中包含main,universe,restricted,multiverse)
最佳回答
要根据库编译程序,通常需要开发人员包。根据您的情况,您需要执行:apt-get install libapr1-dev
。并且不要忘记用apt-get install libaprutil1-dev
重复它。