CentOS7.2 编译安装SVN1.9.5客户端
背景
原来想在Linux机上开Samba共享,在Windows机上把工作目录映射到网络驱动器,用Source Insight编辑代码后就不用来回同步文件了。
然而在使用中发现,Windows机用的SVN客户端版本是1.9.4,而CentOS自带的版本是1.7.14。
用Windows更新过SVN Work Directory后,一不小心就更到了SVN1.8版格式(应该可以选不更新格式吧?)
这样弄完,Linux机上就无法使用SVN了(使用1.7版格式,提示客户端版本太旧)。
网上搜RPM包但是CentOS木有更新的版本了,无奈只好琢磨编译安装最新版!这样两个平台都用1.9版的,就应该没问题了!
环境
[root@min-base ~]# cat /etc/redhat-release
CentOS Linux release 7.2. (Core)
且是Minimal Install
安装
主要参考官网的安装说明,这里没有研究最小依赖安装环境,不过也挺小的了。
安装开发环境工具
[root@min-base ~]# yum -y groupinstall "Deveolpment tools"
这里也会把svn客户端安上,但是是1.7.14版本的,移除它
[root@min-base ~]# yum -y remove subversion
根据安装说明,这里需要几个依赖
安装依赖
[root@min-base ~]# yum -y install yum install python-devel zlib openssl openssl-devel file-libs libtool libtool-devel
查看版本
[root@min-base ~]# rpm -qa | grep autoconf
autoconf-2.69-.el7.noarch
[root@min-base ~]# rpm -qa | grep libtool
libtool-2.4.-.el7_2.x86_64
[root@min-base ~]# gcc --version
gcc (GCC) 4.8. (Red Hat 4.8.-)
Copyright (C) Free Software Foundation, Inc.
下载svn源码包
[root@min-base ~]# wget http://mirrors.tuna.tsinghua.edu.cn/apache/subversion/subversion-1.9.5.tar.gz
[root@min-base ~]# tar zxvf subversion-1.9..tar.gz
[root@min-base ~]# cd subversion-1.9.
[root@min-base subversion-1.9.]# ll
-rw-rw-r--. Mar aclocal.m4
-rwxrwxr-x. Jul autogen.sh
-rw-rw-r--. Feb BUGS
drwxrwxr-x. Nov : build
-rw-rw-r--. Jun build.conf
-rw-rw-r--. Nov : build-outputs.mk
-rw-rw-r--. Nov : CHANGES
-rw-rw-r--. Jan COMMITTERS
-rwxrwxr-x. Nov : configure
-rw-rw-r--. Nov : configure.ac
drwxrwxr-x. Nov : doc
-rw-rw-r--. Nov : gen-make.opts
-rwxrwxr-x. May gen-make.py
-rwxrwxr-x. Aug : get-deps.sh
-rw-rw-r--. Dec INSTALL
-rw-rw-r--. Jan LICENSE
-rw-rw-r--. Dec Makefile.in
-rw-rw-r--. Apr NOTICE
-rw-rw-r--. Jun README
drwxrwxr-x. Nov : subversion
drwxrwxr-x. Nov : tools
-rw-rw-r--. Dec win-tests.py
使用自带脚本下载svn依赖(前面加了===的为get-deps.sh脚本下载的依赖)
[root@min-base subversion-1.9.]# ./get-deps.sh
[root@min-base subversion-1.9.]# ll
-rw-rw-r--. Mar aclocal.m4
===drwxr-sr-x. Feb apr
===drwxr-xr-x. Sep apr-util
-rwxrwxr-x. Jul autogen.sh
-rw-rw-r--. Feb BUGS
drwxrwxr-x. Nov : build
-rw-rw-r--. Jun build.conf
-rw-rw-r--. Nov : build-outputs.mk
-rw-rw-r--. Nov : CHANGES
-rw-rw-r--. Jan COMMITTERS
-rwxrwxr-x. Nov : configure
-rw-rw-r--. Nov : configure.ac
drwxrwxr-x. Nov : doc
-rw-rw-r--. Nov : gen-make.opts
-rwxrwxr-x. May gen-make.py
-rwxrwxr-x. Aug : get-deps.sh
-rw-rw-r--. Dec INSTALL
-rw-rw-r--. Jan LICENSE
-rw-rw-r--. Dec Makefile.in
-rw-rw-r--. Apr NOTICE
-rw-rw-r--. Jun README
===drwxr-xr-x. games Oct serf
===drwxr-xr-x. root root Dec sqlite-amalgamation
drwxrwxr-x. Nov : subversion
drwxrwxr-x. Nov : tools
-rw-rw-r--. Dec win-tests.py
===drwxr-xr-x. games Apr zlib
下载serf构建工具
[root@min-base subversion-1.9.]# cd serf
[root@min-base serf]# wget http://prdownloads.sourceforge.net/scons/scons-local-2.3.0.tar.gz
[root@min-base serf]# tar zxvf scons-local-2.3..tar.gz
按照如下顺序安装
安装apr
[root@min-base ~]# cd ~/subversion-1.9./apr
[root@min-base apr]# ./buildconf
[root@min-base apr]# ./configure
[root@min-base apr]# make
[root@min-base apr]# make install
安装apr-util
[root@min-base ~]# cd ~/subversion-1.9./apr-util
[root@min-base apr-util]# ./buildconf
[root@min-base apr-util]# ./configure --with-apr=/usr/local/apr/bin/apr--config
[root@min-base apr-util]# make
[root@min-base apr-util]# make install
安装serf
[root@min-base ~]# cd ~/subversion-1.9./serf
[root@min-base serf]# ln -s /root/subversion-1.9./serf/scons.py /usr/local/bin/scons
[root@min-base serf]# scons APR=/usr/local/apr/bin/apr--config APU=/usr/local/apr/bin/apu--config OPENSSL=/usr PREFIX=/usr/local
[root@min-base serf]# scons install
安装svn-client
[root@min-base ~]# cd ~/subversion-1.9./
[root@min-base ~]# ./configure --with-serf=/usr/local --with-apr=/usr/local/apr/bin/apr--config --with-apr-util=/usr/local/apr/bin/apu--config
[root@min-base ~]# make
[root@min-base ~]# make install
使用
[root@min-base serf]# svn --version
svn, version 1.9. (r1770682)
compiled Jan , :: on x86_64-unknown-linux-gnu Copyright (C) The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/ The following repository access (RA) modules are available: * ra_svn : Module for accessing a repository using the svn network protocol.
- handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
- handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
- using serf 1.3. (compiled with 1.3.)
- handles 'http' scheme
- handles 'https' scheme The following authentication credential caches are available: * Plaintext cache in /root/.subversion
* GPG-Agent
CentOS7.2 编译安装SVN1.9.5客户端的更多相关文章
- CentOS7下编译安装redis-5.0.9
CentOS7下编译安装redis-5.0.9 本文地址http://yangjianyong.cn/?p=171转载无需经过作者本人授权 下载redis #code start wget https ...
- centos7.6编译安装php7.2.11及redis/memcached/rabbitmq/openssl/curl等常见扩展
centos7.6编译安装php7..11及redis/memcached/rabbitmq/openssl/curl等常见扩展 获取Php的编译参数方法: [root@eus-api-cms-bac ...
- centos7下编译安装php-7.0.15(PHP-FPM)
centos7下编译安装php-7.0.15(PHP-FPM) 一.下载php7源码包 http://php.net/downloads.php 如:php-7.0.15.tar.gz 二.安装所需依 ...
- Linux Centos7.2 编译安装PHP7.0.2
操作环境: 1.系统:Centos7.2 2.服务:Nginx 1.下载PHP7.0.2的安装包解压,编译,安装: $ cd /usr/src/ $ wget http://cn2.php.net/d ...
- CentOS7.6编译安装openssl-1.1.1c
卸载旧版本OpenSSL # which openssl/usr/bin/openssl# mv openssl openssl.oldrm -rf /etc/ssl #删除配置文件 CentOS7. ...
- CentOS7.6编译安装Python-3.7.4
安装步骤 1. 下载安装包.wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz<说明>如果报SSL/TSL错误,则加 ...
- CentOS7 下编译安装 Samba,什么是 SMB/CIFS 协议
目录 一.关于 Samba 1. SMB 2. Samba 二.yum 安装 Samba 1. 安装 Samba 2. 查看版本 3. 查看配置文件 4. 启动服务 5. 本地客户端验证 6. Win ...
- CentOS6.3编译安装Memcached的PHP客户端memcache
在安装Memcached的PHP客户端memcache之前,可先看下先前的工作笔记: PHP5不重新编译,如何安装自带的未安装过的扩展,如soap扩展? 安装PHP的memcache扩展 cd /us ...
- Centos7.2 编译安装PHP7
PHP7,编译安装: 环境:centos7.2 (注意:因为我用的nginx, 此配置参数没有考虑到apache,所以不合适需要用apache的朋友照搬过去运行,但是可以参考.) 直接下载P ...
随机推荐
- js学习笔记---事件代理
事件机制可以分为捕获型和冒泡型.捕获型是事件由父级元素(DOM)传递到子元素.冒泡型正好相反.事件机制默认为冒泡型.事件机制可以通过参数指定. 事件委托可以将我们绑定在document上的事件自动绑定 ...
- Django【进阶篇 】
Model 到目前为止,当我们的程序涉及到数据库相关操作时,我们一般都会这么搞: 创建数据库,设计表结构和字段 使用 MySQLdb 来连接数据库,并编写数据访问层代码 业务逻辑层去调用数据访问层执行 ...
- 9.JAVA中的正则表达式
一.JAVA中的正则表达式 1.概念:以某种特定的方式描述字符串 1.Java中正则表达式的规则 ? #{0,1}-?有一个-或者没有 \\ #表示一个" ...
- [Android]电话拨号器开发
继续今天的Android,经过昨天大体了解了Android开发的一些基本文件结构,今天来做一个电话拨号器! 预期达到的效果 实现过程 首先还是按照昨天第一篇教程,新建一个项目叫PhoneCall的An ...
- HDU 1907 John nim博弈变形
John Problem Description Little John is playing very funny game with his younger brother. There is ...
- handler内存泄露
原因: 在Activity中新建一个Handler后,Handler执行计时操作,如果Activity销毁,Handler是不会主动销毁的,而且会占用Activity的空间,不使其回收,积累久了就会内 ...
- Hibernate的一级缓存
Hibernate的一级缓存 什么是缓存:缓存将数据库/硬盘上文件中数据,放入到缓存中(就是内存中一块空间).当再次使用的使用,可以直接从内存中获取 缓存的好处:提升程序运行的效率.缓存技术是Hibe ...
- (MTT)连续能量函数最小化方法
(MTT)连续能量函数最小化方法 Multitarget tracking Multi-object tracking 连续能量函数 读"A.Milan,S. Roth, K. Schind ...
- Service Locator 服务定位模式
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.T ...
- NOI 题库 7084
7084 迷宫问题 描述 定义一个二维数组: int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, ...