CentOS 5.5 安装配置独立SVN服务器
2011-04-15 10:11
615 查看
本文大部分工作参考:http://blog.hexu.org/archives/405.shtml
1. 下载subversion安装包之后解压 进入subversion目录
wget "http://subversion.tigris.org/downloads/subversion-1.6.12.tar.gz"
wget "http://subversion.tigris.org/downloads/subversion-deps-1.6.12.tar.gz"
tar xfvz subversion-1.6.12.tar.gz
tar xfvz subversion-deps-1.6.12.tar.gz
cd subversion-1.6.12
2. 编译
./configure -–prefix=/usr/local/svn -–without-berkeley-db此处可能存在的错误:
checking openssl/opensslv.h usability... no
checking openssl/opensslv.h presence... no
checking for openssl/opensslv.h... no
configure: error: We require OpenSSL; try --with-openssl
configure failed for serf此时先检查本机有没有装 openssl 和 openssl-devel
最简单的方法就是找一下有没有opensslv.h这个文件
find / -name opensslv.h如果能找到,就在configure命令之后添加 --with-openssl= ...(此处是opensslv.h所在的目录) 我本机是在/usr/include/openssl/下
如果找不到,就执行
yum install openssl
yum install openssl-devel进行安装 安装之后找到opensslv.h所在的目录加到configure命令之后
./configure -–prefix=/usr/local/svn -–without-berkeley-db --with-openssl=/usr/include/openssl
注:以svnserve方式运行,不加apache编译参数。以fsfs格式存储版本库,不编译berkeley-db
如果最后出现下面WARNING,我们直接忽略即可。因为不使用BDB存储。
configure: WARNING: we have configured without BDB filesystem support
You don't seem to have Berkeley DB version 4.0.14 or newer
installed and linked to APR-UTIL. We have created Makefiles which
will build without the Berkeley DB back-end; your repositories will
use FSFS as the default back-end. You can find the latest version of
Berkeley DB here:
http://www.sleepycat.com/download/index.shtml 3.编译之后的安装
#make && makeinstall
为避免出现以下错误
error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory
执行以下操作:
1、编辑/etc/ld.so.conf文件:
#vi /etc/ld.so.conf
添加下面一行
/usr/local/lib
2、保存后运行ldconfig。
#/sbin/ldconfig
3、再重新运行make install 问题得到解决。
#make install
注:ld.so.conf和ldconfig用于维护系统动态链接库
至此,安装完成,执行以下命令测试
# /usr/local/svn/bin/svnserve --version
为了方便下操作,下面将SVN的BIN添加到PATH
#vi /etc/profile
PATH=/usr/local/svn/bin:$PATH
保存后,使其立即生效
#source /etc/profile
1. 下载subversion安装包之后解压 进入subversion目录
wget "http://subversion.tigris.org/downloads/subversion-1.6.12.tar.gz"
wget "http://subversion.tigris.org/downloads/subversion-deps-1.6.12.tar.gz"
tar xfvz subversion-1.6.12.tar.gz
tar xfvz subversion-deps-1.6.12.tar.gz
cd subversion-1.6.12
2. 编译
./configure -–prefix=/usr/local/svn -–without-berkeley-db此处可能存在的错误:
checking openssl/opensslv.h usability... no
checking openssl/opensslv.h presence... no
checking for openssl/opensslv.h... no
configure: error: We require OpenSSL; try --with-openssl
configure failed for serf此时先检查本机有没有装 openssl 和 openssl-devel
最简单的方法就是找一下有没有opensslv.h这个文件
find / -name opensslv.h如果能找到,就在configure命令之后添加 --with-openssl= ...(此处是opensslv.h所在的目录) 我本机是在/usr/include/openssl/下
如果找不到,就执行
yum install openssl
yum install openssl-devel进行安装 安装之后找到opensslv.h所在的目录加到configure命令之后
./configure -–prefix=/usr/local/svn -–without-berkeley-db --with-openssl=/usr/include/openssl
注:以svnserve方式运行,不加apache编译参数。以fsfs格式存储版本库,不编译berkeley-db
如果最后出现下面WARNING,我们直接忽略即可。因为不使用BDB存储。
configure: WARNING: we have configured without BDB filesystem support
You don't seem to have Berkeley DB version 4.0.14 or newer
installed and linked to APR-UTIL. We have created Makefiles which
will build without the Berkeley DB back-end; your repositories will
use FSFS as the default back-end. You can find the latest version of
Berkeley DB here:
http://www.sleepycat.com/download/index.shtml 3.编译之后的安装
#make && makeinstall
为避免出现以下错误
error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory
执行以下操作:
1、编辑/etc/ld.so.conf文件:
#vi /etc/ld.so.conf
添加下面一行
/usr/local/lib
2、保存后运行ldconfig。
#/sbin/ldconfig
3、再重新运行make install 问题得到解决。
#make install
注:ld.so.conf和ldconfig用于维护系统动态链接库
至此,安装完成,执行以下命令测试
# /usr/local/svn/bin/svnserve --version
为了方便下操作,下面将SVN的BIN添加到PATH
#vi /etc/profile
PATH=/usr/local/svn/bin:$PATH
保存后,使其立即生效
#source /etc/profile
相关文章推荐
- CentOS下独立SVN服务器的安装与配置详细过程
- Centos5.5下面lnmp环境配置独立的svn服务器
- CentOS下独立SVN服务器的安装与配置详细过程
- CentOS下独立SVN服务器的安装与配置详细过程
- CentOS下独立SVN服务器的安装与配置详细过程
- 阿里云服务器centos下安装配置svn服务器
- Centos 5.3 Nginx+php+mysql配置 独立的 Subversion (SVN)服务器
- centos上 安装配置svnserve服务器与同步到web网站目录
- CentOS6.5 SVN服务器安装配置
- CentOS 下SVN服务器的安装与配置
- Centos 5.3 Nginx+php+mysql配置 独立的 Subversion (SVN)服务器
- CentOS 简单安装配置svn服务器
- CentOS 5.2下SVN服务器的安装与配置
- Centos 5.3 Nginx+php+mysql配置 独立的 Subversion (SVN)服务器
- CentOS 5.2下SVN服务器的安装与配置 推荐
- CentOS安装SVN服务器并配置HTTPS连接
- CentOS 5.2下SVN服务器的安装与配置【转】
- CentOS6.X下安装配置独立SVN服务器|Subversion server
- CentOS 5.2下SVN服务器的安装与配置
- Centos 5.3 Nginx+php+mysql 配置 独立的 Subversion (SVN)服务器