看尽浮华

导航

 

下载地址:https://mirrors.cnnic.cn/apache/subversion/subversion-1.10.6.tar.gz

解压:tar -zxvf subversion-1.10.6.tar.gz

cd subversion-1.10.6

 

编译安装:

先执行命令:# ./configure,看看有没有报错,

(1)如果没有报错则跳过下面的B步骤;

(2)如果有报错则看下面的B步骤安装依赖包,每安装完一个依赖包,就要在# ./configure 命令后面追加 --with参数并再次运行加了with参数的configure命令。

如果我只安了一个apr依赖包,那么就执行命令:

#./configure --with-apr=/usr/local/apr命令;

如果我安了apr和apr-util,那么就执行命令:

#./configure --with-apr=/usr/local/apr \

--with-apr-util=/usr/local/apr 命令;

如果下面的依赖包全安了,就执行下面的命令:

#./configure --with-apr=/usr/local/apr \
--with-apr-util=/usr/local/apr \
--with-serf=/usr/local/serf \
--with-openssl

 

B.如果报错,提示缺少某某依赖包,缺什么就在此步B中找到相应依赖包下载下来,解压并安装。:
1、 缺少apr模块(1.7.0)
官网URL:https://dlcdn.apache.org//apr/apr-1.7.0.tar.gz
安装命令:
# tar zxvf apr-1.7.0.tar.gz
# cd apr-1.7.0
# ./configure --with-apr=/usr/local/apr
# make && make install

2、 缺少apr-util模块(1.6.1)
官网URL:https://dlcdn.apache.org//apr/apr-util-1.6.1.tar.gz
安装命令:
# tar zxvf apr-util-1.6.1.tar.gz
# cd apr-util-1.6.1
# ./configure --with-apr=/usr/local/apr
# make && make install

3.如果在编译安装apr-util时报错:fatal error: expat.h: No such file or directory
解决方法如下:
yum install expat-devel

4、 sqlite-amalgamation-3230100
官网URL:http://www.sqlite.org/download.html
https://www.sqlite.org/2021/sqlite-amalgamation-3360000.zip
解压到subversion目录下,解压后目录名为sqlite-amalgamation:
# unzip sqlite-amalgamation-3360000.zip -d ../subversion-1.10.6
#mv ../subversion-1.10.6/sqlite-amalgamation-3360000 ../subversion-1.10.6/sqlite-amalgamation

5、 缺少zlib模块(1.2.11)
官方网站:http://www.zlib.net/zlib-1.2.11.tar.gz
安装命令:
# tar zxvf zlib-1.2.11.tar.gz
# cd zlib-1.2.11
# ./configure
# make && make install

4、 sqlite-amalgamation-3230100
官网URL:http://www.sqlite.org/download.html
https://www.sqlite.org/2021/sqlite-amalgamation-3360000.zip
解压到subversion目录下,解压后目录名为sqlite-amalgamation:
# unzip sqlite-amalgamation-3360000.zip -d ../subversion-1.10.6
#mv ../subversion-1.10.6/sqlite-amalgamation-3360000 ../subversion-1.10.6/sqlite-amalgamation
5、 缺少zlib模块(1.2.11)
官方网站:http://www.zlib.net/zlib-1.2.11.tar.gz
安装命令:
# tar zxvf zlib-1.2.11.tar.gz
# cd zlib-1.2.11
# ./configure
# make && make install
6、 缺少openssl模块(1.0.1h)
官方网站:http://www.openssl.org/
安装命令:
# tar zxvf openssl-1.0.1h.tar.gz
# cd openssl-1.0.1h
# ./config
# make &&make install
7、 缺少expat模块(2.1.0)
官方网站:http://sourceforge.net/projects/expat/files/expat/2.1.0/
安装命令:
#tar zxvf expat-2.1.0.tar.gz
# cd expat-2.1.0
# ./configure
# make &&make install

8、 缺少serf模块(1.2.1)

 

posted on 2021-09-24 16:44  看尽浮华  阅读(88)  评论(0编辑  收藏  举报