方法一:

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/).

亲测linux上安装svn的更多相关文章

  1. 亲测linux 上安装php

    亲测安装php1.tar zvxf php-5.3.8.tar.gz 2.cd php-5.3.83../configure \ --prefix=/usr/local/php \--with-mys ...

  2. 亲测linux上安装mysql

    1.rpm -ivh MySQL-server-5.6.19-linux_glibc2.5.x86_64.rpm(这是复制过来的,用Tab键自动补齐吧)2.rpm -ivh MySQL-client- ...

  3. 在Linux上安装SVN服务

    1.安装SVNyum install subversion 2.查看版本svnserve --version3.创建目录mkdir -p /web/svndata3.创建repo测试库svnadmin ...

  4. 在linux上安装svn

    1. 安装svn 输入命令:yum -y install subversion 检查是否安装成功: 输入命令:svn –version 2. 创建代码仓库 输入命令:mkdir -p /usr/loc ...

  5. 很实用的linux 上的svn安装和svnserver 的重启

    虽然在windows上搭建SVN很简单,但是效能却不高,这当然是和linux相比了.然而在linux上搭建SVN却非常繁琐,所以今天这篇文章就来一步一步教您如何在Centos上搭建SVN 安装 #yu ...

  6. Linux下一键安装包的基础上安装SVN及实现nginx web同步更新

    Linux下一键安装包的基础上安装SVN及实现nginx web同步更新 一.安装 1.查看是否安装cvs rpm -qa | grep subversion 2.安装 yum install sub ...

  7. linux上安装redis的踩坑过程

    redis用处很广泛,我不再啰嗦了,我按照网上教程想在linux上安装下,开始了踩坑过程,网上买了一个linux centos7.3,滴滴云的,巨坑无比啊,不建议大家用这家的! redis 为4.0, ...

  8. [转]Liunx上安装svn客户端

    [转]Liunx上安装svn客户端 虽然说很简单的用yum install subversion就可以将svn安装到系统中,但是yum库中的版本实在是有点低——1.4.2.因此我选择以源码方式安装.安 ...

  9. Linux上部署SVN

    Linux上部署SVN author:headsen chen  2017-10-16  16:45:04 前提:通过yum来安装,必须是centos6.5的桌面版的.否则会出现某些的安装包不全而导致 ...

随机推荐

  1. adb 命令大全

    传送门 --> https://github.com/mzlogin/awesome-adb ADB,即 Android Debug Bridge,它是 Android 开发/测试人员不可替代的 ...

  2. Matplotlib基础图形之散点图

    Matplotlib基础图形之散点图 散点图特点: 1.散点图显示两组数据的值,每个点的坐标位置由变量的值决定 2.由一组不连续的点组成,用于观察两种变量的相关性(正相关,负相关,不相关) 3.例如: ...

  3. 牛腩新闻发布系统(二):SQLHelper重构(二)

    导读:在上一篇博客中,介绍了简单的SQLHelper重构,即数据库链接,打开和关闭链接的优化等.现在,将介绍参数化查询和执行命令类型的改造. 一.必要性 1,参数化查询 在上篇博客中,在查询的时候,仅 ...

  4. web.xml不同的头文件

    <转自:http://blog.csdn.net/qq_16313365/article/details/53783288> 1. Servlet 3.1 Java EE 7 XML sc ...

  5. BZOJ 4810 [Ynoi2017]由乃的玉米田 ——Bitset 莫队算法

    加法和减法的操作都能想到Bitset. 然后发现乘法比较难办,反正复杂度已经是$O(n\log{n})$了 枚举因数也不能更差了,直接枚举就好了. #include <map> #incl ...

  6. haskell 乱搞笔记[原创]

        脑洞时间:为什么世界上有那么多程序语言,那是腐朽的资本主义为了增加广大人民学习成本以及编译原理太过普及造成的,建议大学取消编译原理的一切课程,并挥起奥姆休的剃刀,把所有程序语言统统踢了,除机器 ...

  7. #ifdef endif 用法

    "#ifdef 语句1 程序2 #endif“ 可翻译为:如果宏定义了语句1则程序2. 作用:我们可以用它区隔一些与特定头文件.程序库和其他文件版本有关的代码. 代码举例:新建define. ...

  8. 最长递增子序列(cogs 731)

    «问题描述:给定正整数序列x1,..., xn.(1)计算其最长递增子序列的长度s.(2)计算从给定的序列中最多可取出多少个长度为s的递增子序列.(3)如果允许在取出的序列中多次使用x1和xn,则从给 ...

  9. MongoDB_起步

    MongoDB基本概念 <1> mogoDB是一个文档存储类型的nosql数据库,文档存储一般用类似json的格式存储,存储的内容是文档型的. 这样也就有机会对某些字段建立索引, < ...

  10. Codeforces Round #265 (Div. 2) C 暴力+ 找规律+ 贪心

    C. No to Palindromes! time limit per test 1 second memory limit per test 256 megabytes input standar ...