mac下编译svn

# 1. 为第二步做准备
brew install scons

# 2. brew下的serf的版本太低,要去apache下载源码后编译
tar xf  压缩包
cd /serf-1.3.8
scons PREFIX=/usr/local APR=/opt/homebrew/opt/apr APU=/opt/homebrew/opt/apr-util
scons install

# 3. apache下载svn,编译准备
tar xf subversion-1.14.2.tar.bz2
./configure --prefix=/opt/homebrew/Cellar/subversion/1.14.2 --with-apr=/opt/homebrew/opt/apr --with-apr-util=/opt/homebrew/opt/apr-util --with-utf8proc=/opt/homebrew/opt/utf8proc --with-lz4=internal --with-serf

# 编译及安装(可根据电脑性能调整4为其他数字,以利用多核性能)
make -j4
sudo make install
brew link subversion

# 查看版本路径
svn --version
file $(which svn)

你可能感兴趣的:(svn,mac)