方法一:

1、wget http://subversion.tigris.org/downloads/subversion-1.6.1.tar.gz
2、wget http://subversion.tigris.org/downloads/subversion-deps-1.6.1.tar.gz

[或者直接上传到百度云的这两个文件]
3、
tar zxvf subversion-1.6.1.tar.gz  
tar zxvf subversion-deps-1.6.1.tar.gz  
cd subversion-1.6.1/

./configure -prefix=/opt/svn -without-berkeley-db -with-zlib=/usr/local/zlib 【zlib要安装,并且要建一个软链接】

./configure --with-openssl=/usr/local/ssl --with-zlib=/usr/local/zlib -without-serf【最终解决方案是这个配置,--with-openssl=/usr/local/ssl 安装openssl的时候自动在usr/local/建了一个文件ssl】

./configure --prefix=/usr/local/svn --with-openssl=/usr/include/openssl --without-berkeley-db【最终方案是这个,不是上面那个 with-openssl=/usr/include/openssl 后面的这个路径是本文黄色的字体那部分的路径,那样来的】

config之后,如果出现下面这个界面,忽略两个警告,算是config成功了

【configure: WARNING: unrecognized options: --with-openssl
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.oracle.com/technology/software/products/berkeley-db/index.html 】

安装是否成功

svnserve --version

为了检验SVN安装成功,也可运行语句:

svn –version

出现如下,svn安装成功了

svnserve, version 1.6.1 (r37116)
   compiled Aug  8 2014, 16:26:19

Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository back-end (FS) modules are available:

* fs_fs : Module for working with a plain file (FSFS) repository

【出现错误一:
checking for openssl/opensslv.h... no
configure: error: We require OpenSSL; try --with-openssl
configure failed for serf
------------------------------------------------------
解决方案:
错误提示需要安装openssl,所以我就安装了一个openssl,安装方法如下:
cd /usr/local
wget http://www.openssl.org/source/openssl-1.0.0a.tar.gz 【或者直接从百度云盘拷贝过去】
tar -zxvf openssl-1.0.0a.tar.gz
cd openssl-1.0.0a

./config
./config -t
make depend
make
make test
make install

首先检测系统有没有安装SSL:

[root@server subversion-1.6.6]# find / -name opensslv.h
[root@server subversion-1.6.6]#

找不到,就执行如下命令进行安装:

[root@server subversion-1.6.6]# yum install openssl
[root@server subversion-1.6.6]# yum install openssl-devel 

安装之后用find / -name opensslv.h命令找到opensslv.h所在的目录,即下列--with-openssl=后面的路径,编译:

[root@server subversion-1.6.6]# find / -name opensslv.h
/usr/include/openssl/opensslv.h
[root@server subversion-1.6.6]# ./configure --prefix=/usr/local/svn --with-openssl=/usr/include/openssl --without-berkeley-db

安装之后会在/usr/local下生成一个ssl目录

设置环境变量,在/etc/profile的PATH中增加如下内容:

PATH=/usr/local/ssl/bin:/sbin/:$PATH:/usr/sbin
export PATH

ok,错误提示1解决。】
------------------------
4、然后关闭终端,重新开启一个,来到当前下载的subversion目录
cd subversion-1.6.1/  
./configure --with-openssl=/usr/local/ssl  
没有出现,ok,问题解决
5、make
6、make install
【出现错误二:
collect2: ld returned 1 exit status

make[1]: *** [libserf-0.la] Error 1

make[1]: Leaving directory `/usr/local/subversion-1.6.16/serf’

make: *** [external-all] Error 1
-------------------------------------------------
解决方案:
这种情况下,我首先是安装了serf-0.7.2.tar.gz这个包【这里有问题,网上没有搜到这个包】,在配置的时候将指向这个包,但并不管用,所以我后来在配置的时候忽略掉了这个包,如下:

./configure  –with-ssl –with-openssl=/usr/local/ssl  –with-libs=/usr/local/ssl –without-serf –enable-maintainer-mode

也就是相比上面的加上了一句:–without-serf

这样配置后再进行make,编译通过了!

之后,再进行安装:

make install

也顺利通过,为了检验SVN安装成功,我们运行语句:

svn –version

方法二:

2014年8月4日
yum install -y subversion-*

出现错误:

file /usr/share/mysql/serbian/errmsg.sys from install of mysql-libs-5.1.73-3.el6_5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.el6.x86_64

----------------------------------------------------------

解决方案:

svnserve --version
mkdir /opt/svndata
cd /opt/svndata
mkdir –p /opt/svndata/javaweb
svnadmin create /opt/svndata/javaweb
-------------------
然后复制这个文件夹下的auth passwd sev等三个文件夹
 useradd sss
passwd sss (输入密码)
chown -R sss:sss /svndata

http://www.cnblogs.com/bluewelkin/p/3853538.html

开启svn

svnserve -d  -r /opt/svndata

killall svnserve 关闭svn

测试svn

svn co svn://127.0.0.1/javaweb

参考文章:

http://300second.blog.51cto.com/7582/780348

svnserve, version 1.6.1 (r37116)
   compiled Aug  8 2014, 16:26:19

Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

最新文章

  1. 【CentOS】磁盘管理与vim编译器
  2. T4 文本模板编写准则
  3. linux shell获取时间
  4. [置顶] Android开发实战记录(三)---HelloWorld
  5. awk运用
  6. “三次握手,四次挥手”你真的懂吗?TCP
  7. react-native模拟机调试步骤详解 ——亲测有效!!!!
  8. Python学习之路基础篇--03Python基础+万恶的运算符
  9. install virtual enviroment on windows
  10. 「Android」adb调试源码(针对dumpsys SurfceFlinger、trace.txt获取)
  11. Python(x,y) 的 FTP 下载地址
  12. 查出了a表,然后对a表进行自查询,a表的别名t1,t2如同两张表,因为t1,t2查询的条件不一样,真的如同两张表,关联两张表,可以将两行或者多行数据合并成一行,不必使用wm_concat()函数。为了将t2表的数据全部查出来使用了右连接。
  13. JavaScript中 this 的指向
  14. jQuery自定义数组操作类(类似于List集合的增删改查)
  15. C++ map,set内部数据结构
  16. iis下php 500错误
  17. sftp本地上传和远程下载
  18. Sting.format字符串格式化
  19. TextInput
  20. Beautiful Soup库介绍

热门文章

  1. 00036_private
  2. unittest跳过测试和预期失败
  3. MHA的介绍和测试(一)
  4. NOIP一系列模拟赛小结
  5. BZOJ 2127 happiness ——网络流
  6. P1373 小a和uim之大逃离 (动态规划)
  7. rest-assured 将log()中的信息打印到log日志中去的方法
  8. asp.net mvc 页面内容呈现Html.Raw HtmlString
  9. 改变input的value值,同时在HTML中将value进行改变
  10. KS103超声波测距模块