linux下安装svn1.7,Linux笔记-centos7编译安装svn 1.14.1

最近准备搭个创库,方面代码备份。服务器采用Linux,在百度上,差不多都是用yum安装。而且版本都太老了,不适合新时代程序员。

对此阅读了下官方文档。记录下目前(2021-03-14 13:12:47)最新版subversion(1.14.1)的Linux服务端编译安装。

首先用yum安装这2个库:

yum install expat-devel

yum install libtool

安装Python3

wget https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tar.xz

tar -xf Python-3.6.8.tar

cd Python-3.6.8

./configure prefix=/usr/local/python3

make

make install

ln -s /usr/local/python3/bin/python3.6 /usr/bin/python3

python3 -v

随后依次安装

Apr-1.7.0

wget https://archive.apache.org/dist/apr/apr-1.7.0.tar.bz2

tar -xjf apr-1.7.0.tar.bz2

cd apr-1.7.0

./configure --prefix=/usr \

--disable-static \

--with-installbuilddir=/usr/share/apr-1/build

make

make install

Apr-Util-1.6.1

wget https://archive.apache.org/dist/apr/apr-util-1.6.1.tar.bz2

tar -xjf apr-util-1.6.1.tar.bz2

cd apr-util-1.6.1

./configure --prefix=/usr \

--with-apr=/usr \

--with-gdbm=/usr \

--with-openssl=/usr \

--with-crypto

make

make install

最后SQLite-3.34.1

wget https://sqlite.org/2021/sqlite-autoconf-3340100.tar.gz

tar -zxvf java.tar.gz

cd sqlite-autoconf-3340100

./configure --prefix=/usr \

--disable-static \

--enable-fts5 \

CPPFLAGS="-DSQLITE_ENABLE_FTS3=1 \

-DSQLITE_ENABLE_FTS4=1 \

-DSQLITE_ENABLE_COLUMN_METADATA=1 \

-DSQLITE_ENABLE_UNLOCK_NOTIFY=1 \

-DSQLITE_ENABLE_DBSTAT_VTAB=1 \

-DSQLITE_SECURE_DELETE=1 \

-DSQLITE_ENABLE_FTS3_TOKENIZER=1"

make

make install

最后搞Subversion-1.14.1

wget https://archive.apache.org/dist/subversion/subversion-1.14.1.tar.bz2

tar -xjf subversion-1.14.1.tar.bz2

cd subversion-1.14.1

PYTHON=python3 ./configure --prefix=/usr \

--disable-static \

--with-apache-libexecdir \

--with-lz4=internal \

--with-utf8proc=internal

make

make install

这样服务端就搭建好了。

查看版本号:

svnserve --version

7ba5e5cab0bbf4c483c2084225628de8.png

创建好创库后

svnserve -d -r /var/svn

端口号为3690

lsof -i:3690

e0ea78b4271847c6b740066f89d1f03b.png

PS:

停止svnserver命令:

killall svnserve

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值