ubuntu-从源代码安装Subversion-缺少APR


9

因为我需要一个错误修复程序,而该错误修复程序在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 install svn-未找到包-我在sources.list中有main,universe,restricted,multiverse)

Answers:


14

要根据库编译程序,通常需要开发人员包。根据您的情况,您需要执行以下操作:apt-get install libapr1-dev。并且不要忘了重复apt-get install libaprutil1-dev


谢谢。这工作了。现在出现另一个错误。您是否有机会知道此包装?(在google上搜索,但未找到apt-get包)...............................配置:警告:找不到APRUTIL找不到Apache可移植运行时实用程序(APRUTIL)库。无论是在此系统上安装APRUTIL并提供相应的
tanon

1
同样的事情,安装名为:libaprutil1-dev的软件包
slubman 2011年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.