服务器搭建--安装svn1.10.3服务端

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/ztx114/article/details/83091412

安装要素

bzip2
expat-2.2.6
apr-1.6.5
apr-util-1.6.1
scons
python
serf-1.3.9
sqlite-3.25.2
subversion-1.10.3

安装步骤

bzip2

yum -y install bzip2.x86_64

expat 2.2.6

->tar -jxvf expat-2.2.6.tar.bz2
->cd expat-2.2.6
->./configure
->make && make install

apr-1.6.5

->tar -zxvf apr-1.6.5.tar.gz
->cd apr-1.6.5
->./configure --prefix=/usr    \
            --disable-static \
            --with-installbuilddir=/usr/share/apr-1/build

->make && make install

命令解释
–disable-static:此开关阻止安装库的静态版本。

内容
安装程序:
apr-1-config
安装库:
libapr-1.so
已安装的目录:
/ usr / include / apr-1和/ usr / share / apr-1

简短说明
APR-1-config
是一个shell脚本,用于检索有关系统中apr库的信息。它通常用于编译和链接库。
libapr-1.so
是Apache Portable Runtime库。

apr-util-1.6.1

->tar -zxvf apr-util.1.6.1.tar.gz
->cd apr-util-1.6.1
->./configure --prefix=/usr       \
            --with-apr=/usr     \
            --with-gdbm=/usr    \
            --with-openssl=/usr \
            --with-crypto 
->make && make install

命令解释
–with-gdbm=/usr:此开关启用apr_dbm_gdbm-1.so 插件。

–with-openssl=/usr --with-crypto:这些开关启用apr_crypto_openssl-1.so插件。

–with-berkeley-db=/usr:如果已安装Berkeley DB-5.3.28,请使用此开关编译apr_dbm_db-1.so插件。

–with-ldap:如果已安装 OpenLDAP-2.4.46,请使用此开关编译apr_ldap.so插件。

内容
安装程序:
apu-1-config
安装库:
libaprutil-1.so
安装目录:
/ usr / lib / apr-util-1
简短说明
APU -1-config
是一个APR-util脚本,旨在允许轻松命令行访问APR-util配置参数。
libaprutil-1.so
包含为底层客户端库接口提供可预测且一致的接口的函数。

subversion-1.10.3 先解压不要其他命令

->tar -zxvf subversion-1.10.3.tar.gz

sqlite-3.25.2

->tar -zxvf sqlite-autoconf-3250200.tar.gz 
->mv sqlite-autoconf-3250200 /subversion-1.10.3/sqlite-amalgamation ##注意:这里一定要把sqlite安装到svn的安装目录里且目录名改为sqlite-amalgamation
->cd /subversion-1.10.3/sqlite-amalgamation
->./configure --prefix=/usr/local/subversion-1.10.3/sqlite-amalgamation/
->make && make install

scons

->yum install scons

python

->yum -y install python

serf-1.3.9

->tar -jxvf serf-1.3.9tar.bz2
->cd serf-1.3.9
->scons PREFIX =/usr/local/serf APR=/usr/apr/bin/apr-1-config APU=/usr/apr-util/bin/apu-1-config ##根据具体安装目录而定
->scons install

subversion-1.10.3 继续安装

->./configure --with-serf=/usr/local/soft/serf-1.3.9 --with-apr-util=/usr/local/soft/apr-util-1.6.1 --with-lz4=internal --with-utf8proc=internal   ##根据具体安装目录
->make && make install
->svnserve -version  ##查看安装版本,打印如下,安装成功

svnserve, version 1.10.3 (r1842928)
   compiled Oct 16 2018, 15:20:40 on x86_64-unknown-linux-gnu

Copyright (C) 2018 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/

The following repository back-end (FS) modules are available:

* fs_fs : Module for working with a plain file (FSFS) repository.
* fs_x : Module for working with an experimental (FSX) repository.

猜你喜欢

转载自blog.csdn.net/ztx114/article/details/83091412