安装subversion1-10

Posted by 刘勇(lyonger) on 2019-11-30

安装 apr

1
2
3
4
5
6
7

➜ wget -c http://mirrors.shu.edu.cn/apache//apr/apr-1.6.5.tar.gz
➜ tar -zxvf apr-1.6.5.tar.gz
➜ cd apr-1.6.5
➜ ./configure --prefix=/usr/local/apr
➜ make
➜ make install

安装 apr-util

1
2
3
4
5
6
7

➜ wget -c http://mirrors.shu.edu.cn/apache//apr/apr-util-1.6.1.tar.gz
➜ tar -zxvf apr-util-1.6.1.tar.gz
➜ cd apr-util-1.6.1
➜ ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
➜ make
➜ make install

安装sqlite

1
2
3
4
5
6

wget https://www.sqlite.org/2015/sqlite-amalgamation-3081101.zip

unzip sqlite-amalgamation-3081101.zip

mv sqlite-amalgamation-3081101 /path/to/sqlite-amalgamation

安装subversion

1
2
3
4
5
6
7

➜ wget -c http://mirrors.shu.edu.cn/apache/subversion/subversion-1.10.3.tar.gz
➜ tar -zxvf subversion-1.10.3.tar.gz
➜ cd subversion-1.10.3
➜ ./configure --prefix=/usr/local/subversion --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-lz4=internal --with-utf8proc=internal
➜ make
➜ make install

添加环境变量

1
2
3

➜ echo "export PATH=/usr/local/subversion/bin:$PATH" >> /etc/profile
➜ source /etc/profile

添加sasl认证

1
2
3
4
5
6
7
8
9
10

wget http://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-2.1.25.tar.gz

tar xf cyrus-sasl-2.1.25.tar

cd cyrus-sasl-2.1.25

./configure --prefix=/usr/local/sasl

make && make install

常见错误

1
2
3
4
5
6
7
8
9
10
11
12

checking for zlib.h... no
configure: error: subversion requires zlib
#解决
wget https://nchc.dl.sourceforge.net/project/libpng/zlib/1.2.11/zlib-1.2.11.tar.gz
tar xf zlib-1.2.11.tar.gz
cd zlib-1.2.11/
./configure --prefix=/usr/local/zlib
make
make install
#重新编译subversion
./configure --prefix=/usr/local/subversion --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-lz4=internal --with-utf8proc=internal --with-zlib=/usr/local/zlib/ --with-sasl=/usr/local/sasl/

推荐阅读



支付宝打赏 微信打赏

赞赏一下