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

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

因为我需要一个 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)

答案1

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

相关内容