suse11源码编译配置管理SVN

因为没有配置源,所以为源码编译,中间发现缺少很多包,都需要源码编译,还有点麻烦,需要apr、apr-util、expat、sqlite-amalgamation、zlib众多源码包,如果环境中没有安装openssl,还需要openssl源码包。

 

1、整个编译过程如下

# tar -zxf apr-1.6.5.tar.gz

# cd apr-1.6.5/

# ./configure --prefix=/usr/local/apr

# make && make install

 

# tar -zxf apr-util-1.6.1.tar.gz 

# cd apr-util-1.6.1/

# ./configure --prefix=/usr/local/apr-util

checking for APR... no

configure: error: APR could not be located. Please use the --with-apr option

# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr

# make && make install

    make[1]: *** [xml/apr_xml.lo] Error 1

make[1]: Leaving directory `/home/data/apr-util-1.6.1'

make: *** [all-recursive] Error 1

 

# tar -zxf expat-2.1.0.tar.gz 

# cd expat-2.1.0/

# ./configure --prefix=/usr/local/expat

# make && make install

 

# cd apr-util-1.6.1/

# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr --with-expat=/usr/local/expat

# make && make install

 

# cd subversion-1.6.17/

# ./configure --prefix=/usr/local/svn --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util

configure: error: Subversion requires SQLite

 

# tar -zxf sqlite-amalgamation-3.6.13.tar.gz

# cd sqlite-3.6.13

# mkdir /home/data/subversion-1.6.17/sqlite-amalgamation

# cp sqlite3.c /home/data/subversion-1.6.17/sqlite-amalgamation

 

# cd subversion-1.6.17/

# ./configure --prefix=/usr/local/svn --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util

configure: error: subversion requires zlib

 

# tar -zxf zlib-1.2.5.tar.gz 

# cd zlib-1.2.5/

# ./configure --prefix=/usr/local/zlib

# make && make install

 

# ./configure --prefix=/usr/local/svn --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-zlib=/usr/local/zlib

 

# rpm -qa | grep openssl

libopenssl0_9_8-32bit-0.9.8j-0.50.1

libopenssl0_9_8-0.9.8j-0.50.1

openssl-certs-1.85-0.6.1

openssl-0.9.8j-0.50.1

 

存在openssl。不然还需要编译openssl

 

# make && make install

 

终于编译完成,查看svn版本

# /usr/local/svn/bin/svn --version

svn, version 1.6.17 (r1128011)

   compiled Nov  8 2018, 03:56:45

 

2、配置环境变量

# vi /etc/profile

PATH=$PATH:/usr/local/svn/bin

export PATH

 

3、其他配置

接下来的配置就和我之前的svn配置差不多了,创建版本库目录,创建版本库,修改svn库配置文件,修改账户密码文件,修改权限配置文件等等,大家参考即可,这篇文章主要讲如果解决源码编译问题。

 

参考:

http://subversion.tigris.org/downloads/subversion-1.6.17.tar.bz2

http://mirror.bit.edu.cn/apache//apr/apr-1.6.5.tar.gz

http://mirror.bit.edu.cn/apache//apr/apr-util-1.6.1.tar.gz

http://sources.lede-project.org/expat-2.1.0.tar.gz

https://www.sqlite.org/sqlite-amalgamation-3.6.13.tar.gz

http://www.zlib.net/fossils/zlib-1.2.5.tar.gz

 

SVN分支与合并【超详细的图文教程】

https://www.cnblogs.com/dongzhiquan/p/5222018.html

你可能感兴趣的:(版本控制)