非root用户安装subversion服务端

迁移svn代码库的时候报了

contains invalid filesystem format option ‘addressing logical‘

查了系统自带的svn版本是 1.7.14 (r1542130),估计是版本低了。原来下线的机器上的版本应该比这个版本高,于是准备升级版本。因为没有root权限,没法使用yum安装最新版本了,只能源码编译了。在subversion官网下载了1.14.4 (r1920901)版的源码,以及4项依赖包。先对依赖包进行编译,再编译subversion,最终安装成功。并使用编译好的最新版本subversion起服务。


参考了这篇: Linux下非root用户安装SVN
操作系统

centos 7.9 x86_64

SVN版本

subversion-1.14.4

依赖包

apr-1.5.2
apr-util-1.5.4
zlib-1.3.1
sqlite-amalgamation-3081101

操作步骤
用户myth
1.apr

./configure --prefix=/home/myth/svn/lib/apr-1.5.2
make
make install

2.apr-util

./configure --prefix=/home/myth/svn/lib/apr-util-1.5.4 --with-apr=/home/myth/svn/lib/apr-1.5.2
make
make install

3.sqlite
get the sqlite 3.8.11.1 amalgamation from:
    https://www.sqlite.org/2015/sqlite-amalgamation-3081101.zip
unpack the archive using unzip and rename the resulting
directory to:
/home/myth/svn/source/subversion-1.14.4/sqlite-amalgamation

4.zlib

./configure --prefix=/home/myth/svn/lib/zlib-1.3.1
make
make install

5.svn

./configure --prefix=/home/myth/svn/svn-1.14.4 --with-apr=/home/myth/svn/lib/apr-1.5.2 --with-apr-util=/home/myth/svn/lib/apr-util-1.5.4 --with-zlib=/home/myth/svn/lib/zlib-1.3.1 --with-lz4=internal --with-utf8proc=internal
make
make install

6.sh

cd /home/myth/svn
nano svnserverun.sh
#!/bin/sh
/home/myth/svn/svn-1.14.4/bin/svnserve -d -r /home/myth/svn/svn_repos

7.run

chmod 755 svnserverun.sh
sh svnserverun.sh

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值