迁移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