文章目录
- 下载最新版本安装包
- 安装
下载最新版本安装包
wget https://dlcdn.apache.org/subversion/subversion-1.14.3.tar.gz
tar -zxf subversion-1.14.3.tar.gz
cd subversion-1.14.3
安装
-
./configure 报错,提示缺少 apr-util 库,有的环境可能 apr 库也没有,所以先安装 apr 和 apr-util,安装前可以先在根目录查找下 apr 和 apr-util,如果已经安装过,就不用安装了,直接加选项,指向安装位置即可。
-
安装 apr
- wget https://dlcdn.apache.org//apr/apr-1.7.4.tar.gz
- tar -zxf apr-1.7.4.tar.gz
- cd apr-1.7.4
- ./configure
- make -j
- make install
- echo ‘export LD_LIBRARY_PATH=“$LD_LIBRARY_PATH:/usr/local/apr/lib”;’ >> ~/.bashrc
- source ~/.bashrc
-
安装 apr-util
- wget https://dlcdn.apache.org//apr/apr-util-1.6.3.tar.gz
- tar -zxf apr-util-1.6.3.tar.gz
- cd apr-util-1.6.3
- ./configure
- make -j
- make install
- echo ‘export LD_LIBRARY_PATH=“$LD_LIBRARY_PATH:/usr/local/apr-util/lib”;’ >> ~/.bashrc
- source ~/.bashrc
-
./configure --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util 重新编译,报错,提示缺少合适版本的 sqlite
-
下载 sqlite-amalgamation
- wget https://www.sqlite.org/2015/sqlite-amalgamation-3081101.zip
- unzip sqlite-amalgamation-3081101.zip
- mv sqlite-amalgamation-3081101 subversion-1.14.3/sqlite-amalgamation
-
./configure --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util 重新编译,报错,提示缺少 lz4 压缩库,只需要添加个选项即可
-
./configure --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-lz4=internal 重新编译,报错,提示缺少 utf8proc 库,只需要添加选项弃用内置库即可
-
./configure --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-lz4=internal --with-utf8proc=internal 编译成功
-
make -j
-
make install 安装完成