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 ...
随机推荐
- android系统中自带的一些ThemeStyle
1 android:theme="@android:style/Theme.Holo.Light.NoActionBar.Fullscreen" 布局页面最上面 不会显示 and ...
- Tensorflow二分类处理dense或者sparse(文本分类)的输入数据
这里做了一些小的修改,感谢谷歌rd的帮助,使得能够统一处理dense的数据,或者类似文本分类这样sparse的输入数据.后续会做进一步学习优化,比如如何多线程处理. 具体如何处理sparse 主要是使 ...
- MongoDB游标操作(4)
游标是什么? 通俗的说,游标不是查询结果,而是查询的返回资源,或者接口. 通过这个接口,你可以逐条读取. 声明游标: var cursor = db.collectioName.find(query ...
- CentOS7— Redis安装(转和延续)
Part I. Redis安装(转载部分) 一.安装 wget http://download.redis.io/redis-stable.tar.gz tar xvzf redis-stable.t ...
- 什么是shell
Shell本身是一个用C语言编写的程序,它是用户使用Linux的桥梁.Shell既是一种命令语言,又是一种程序设计语言.作为命令语言,它交互式地解释和执行用户输入的命令:作为程序设计语言,它定义了各种 ...
- 浏览器-09 javascript引擎和Chromium网络栈
语言的运行 C/C++语言 使用编译器直接将它们编译成本地代码(机器指令),这是由开发人员在代码编写完成之后实施; 用户只是使用这些编译好的本地代码,这些本地代码被系统的加载器加载执行,由操作系统调度 ...
- 怎样看懂Oracle的执行计划
怎样看懂Oracle的执行计划 一.什么是执行计划 An explain plan is a representation of the access path that is taken when ...
- 冰球项目日志2-yjw
我们小组在12.31号进行了讨论,确定了基本的任务及分工,后面是元旦放假,大家没有做很多的东西,我也是把自己分工的部分方案想了下. 后面在1.3号,我们会再进行一次小组讨论,确定下最终的方案,然后进行 ...
- java IO流 Zip文件操作
一.简介 压缩流操作主要的三个类 ZipOutputStream.ZipFile.ZipInputStream ,经常可以看到各种压缩文件:zip.jar.GZ格式的压缩文件 二.ZipEntry ...
- 单元测试地二蛋 先弄个两个原生模块1个原始的一个jq插件
放羊测试测完了再测这两个瞎搞的下拉列表组建 看看从单元测试模块化的角度组建会写成啥样 1:ajax请求 简单文本 2:1个页面多个实例 3:复杂展示+自定义点击+自定义处理函数 ...