CentOS编译安装subversion 1.9.7

前端之家收集整理的这篇文章主要介绍了CentOS编译安装subversion 1.9.7前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

安装apr

wget http://mirror.bit.edu.cn/apache//apr/apr-1.6.3.tar.gz 
tar -zxvf apr-1.6.3.tar.gz
./configure --prefix=/desired/path/of/apr
make
sudo make install

安装apr-util

wget http://mirror.bit.edu.cn/apache//apr/apr-util-1.6.1.tar.gz
tar -zxvf apr-util-1.6.1.tar.gz
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make  #遇到错误,见下文说明
sudo make install

make时遇到错误
xml/apr_xml.c:35:19: fatal error: expat.h: No such file or directory
解决方案:
sudo yum install expat-devel

安装sqlite

wget http://www.sqlite.org/2017/sqlite-autoconf-3210000.tar.gz
tar -zxvf sqlite-autoconf-3210000.tar.gz
./configure --prefix=/usr/local/sqlite
make
sudo make install

安装zlib

wget http://www.zlib.net/zlib-1.2.11.tar.gz
tar -zxvf zlib-1.2.11.tar.gz
./configure --prefix=/usr/local/zlib
make
sudo make install

安装subversion

wget http://mirrors.hust.edu.cn/apache/subversion/subversion-1.9.7.tar.gz
./configure --prefix=/usr/local/subversion_1.9.7 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-sqlite=/usr/local/sqlite --with-zlib=/usr/local/zlib
make
sudo make install

添加环境变量

在/etc/bashrc最后一行添加
export PATH=/usr/local/subversion_1.9.7/bin:$PATH

finished!

原文链接:https://www.f2er.com/centos/374899.html

猜你在找的CentOS相关文章