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 ...
随机推荐
- 【翻译】ASP.NET MVC 5属性路由(转)
转载链接:http://www.cnblogs.com/thestartdream/p/4246533.html 原文链接:http://blogs.msdn.com/b/webdev/archive ...
- python信号signal简单示例
进程间通信之类的,用得着, 可以自定义接到信息之后的动作. file1.py #!/usr/bin/env python # -*- coding: utf-8 -*- import os impor ...
- Windows内核遍历驱动模块源码分析
要获取windows 内核中所有驱动模块信息,调用 系统服务函数 NtQuerySystemInformation,参数SystemInformationClass 传入SystemModuleInf ...
- Python学习笔记(一)——环境搭建
一.安装包下载: 国内镜像:32位:http://pan.baidu.com/s/1jI4q4lS 64位:http://pan.baidu.com/s/1eRPhpRW 版本更迭速度很 ...
- 【转载】科研ppt制作的体会
转载自实验室陈家雷学长发在bbs 上的帖子,讲解了自己制作ppt的心得体会.学习下. 附件中是我昨天晚上我的组会ppt的pdf版本,另外我对ppt的制作有点自己的理解,基本上都是去年暑假在Harvar ...
- hdu分类 Math Theory(还有三题!)
这个分类怎么觉得这么水呢.. 这个分类做到尾的模板集: //gcd int gcd(int a,int b){return b? gcd(b, a % b) : a;} //埃氏筛法 O(nlogn) ...
- js 一些容易错的点
最近在做平台相关功能,需要和js.html.以及使用bootstrap,bootstrap元素大小的设置 是比较难的. js比较容易出错的是,解析json,对象最好是使用json,这样更好解析,arr ...
- MyEclipse10的一些问题(git插件,jdk7)
egit: MyEclipse10 要装 egit2.3,版本错了安装不成功; jdk7: 10.5好像是不支持JDK1.7的,换成10.7; JDK1.7中的switch支持String类型的,1. ...
- [BZOJ3874][AHOI2014] 宅男计划
Description 外卖店一共有N种食物,分别有1到N编号.第i种食物有固定的价钱Pi和保质期Si.第i种食物会在Si天后过期.JYY是不会吃过期食物的.比如JYY如果今天点了一份保质期为1天的食 ...
- requirejs:模块加载(require)及定义(define)时的路径小结
原文地址:http://www.tuicool.com/articles/7JBnmy 接触过requirejs的童鞋可能都知道,无论是通过define来定义模块,还是通过require来加载模块,模 ...