svn安装
来源:互联网 发布:流畅的python mobi 编辑:程序博客网 时间:2024/05/14 03:08
Centos linux上安装svn 全面解释
(2012-10-24 15:08:56)转载▼
标签:
杂谈
分类: linuxlinux上面安装svn,需要gcc和openssl支持,所以在安装这些文件之前 ,你得先把自己虚拟的公网连接上,不然非常痛苦,关于vmware上连接公网,我的博客中文章,不在这里说
下载subversion安装包之后解压 进入subversion目录
2. 编译
此处可能存在的错误:
此时先检查本机有没有装 openssl 和 openssl-devel
最简单的方法就是找一下有没有opensslv.h这个文件
如果能找到,就在configure命令之后添加 --with-openssl= ...(此处是opensslv.h所在的目录) 我本机是在/usr/include/openssl/下
如果找不到,就执行
进行安装 安装之后找到opensslv.h所在的目录加到configure命令之后
注:以svnserve方式运行,不加apache编译参数。以fsfs格式存储版本库,不编译berkeley-db
如果最后出现下面WARNING,我们直接忽略即可。因为不使用BDB存储。
3.编译之后的安装
为避免出现以下错误
执行以下操作:
至此,安装完成,执行以下命令测试
为了方便下操作,下面将SVN的BIN添加到PATH
首先查看gcc和openssl协议
如果没有安装,我的博客中也有,自己查看
要是相同的版本,否则安装过程中会报错(
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
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
checking openssl/opensslv.h presence... no
checking for openssl/opensslv.h... no
configure: error: We require OpenSSL; try --with-openssl
configure failed for serf
最简单的方法就是找一下有没有opensslv.h这个文件
find / -name opensslv.h
如果找不到,就执行
yum install openssl
yum install openssl-devel
yum install openssl-devel
./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
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用于维护系统动态链接库
#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
PATH=/usr/local/svn/bin:$PATH
保存后,使其立即生效
#source /etc/profile
0 0
- [svn]SVN客户端安装
- 【Svn】ubuntu 安装svn
- SVN安装
- SVN安装
- 安装SVN
- SVN安装
- svn 安装
- SVN 安装
- svn安装
- svn安装
- svn安装
- SVN安装
- SVN 安装
- svn安装
- SVN安装
- svn安装
- 安装SVN
- svn安装
- Java基础知识
- DP--POJ - 2096 Collecting Bugs
- Android6.0权限管理
- 四层负载均衡和七层负载均衡的区别
- Springmvc4.x笔记之3.RequestMapping
- svn安装
- Visual Studio 2010 C++ 工程文件解读
- CSAPP学习笔记(第一,二章)
- Python网页图片爬虫
- 宠物能继承遗产吗?专家再议《民法典》草案
- LeetCode题解——Balanced Binary Tree
- CSAPP学习笔记(异常控制流1)
- Android:Serializable接口和Parcelable接口
- C语言实现链表之单向链表(十五)测试用例