编译安装svn(subversion)支持sasl
系统默认的svn不支持sasl加密。若svn服务器开启sasl加密的话将报错:Cannot negotiate authentication mechanism。需重新编译安装。
下载
subversion官网下载 subversion要先安装apr和apr-util: apr和apr-util下载
安装
apr编译安装:
./configure
make
sudo make install
apr-util编译安装:
./configure --with-apr=/usr/local/apr
make
sudo make install
subversion编译安装:
./configure --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr
make
sudo make install
安装完之后svn命令要做一个软链接:
sudo ln -s /usr/local/bin/svn /usr/bin/svn
查看版本:
$ svn --version
svn, version 1.9.7 (r1800392)
compiled Oct 23 2017, 14:22:48 on x86_64-apple-darwin17.0.0
Copyright (C) 2017 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 access (RA) modules are available:
* ra_svn : Module for accessing a repository using the svn network protocol.
- with Cyrus SASL authentication
- handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
- handles 'file' scheme
可以看到已经支持sasl加密了。