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

tan*_*non 10 apache-http-server svn ubuntu

因为我需要一个在 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
Run Code Online (Sandbox Code Playgroud)

笔记:

1) 我已经安装了 libapr1

2)我无法安装 svn 客户端,请按照错误消息中的说明进行操作(apt-get install svn - 未找到包 - 我在 sources.list 中有 main、universe、restricted、multiverse)

slu*_*man 14

要根据库编译程序,您通常需要开发包。在你的情况,你需要做的:apt-get install libapr1-dev。并且不要忘记用 重复它apt-get install libaprutil1-dev