CentOS7使用yum安装subversion1.8版本

现状

我这台服务器默认的是1.7.14版本
其它操作出现了异常,需要把subversion版本给升级一下

使用svn upgrade出现了错误

[wong@localhost bin]$ svn upgrade
svn: E155019: Can't upgrade 'XX' as it is not a pre-1.7 working copy directory
svn: E000002: Can't open file 'XX': No such file or directory

解决

1、配置yum源

[WandiscoSVN]
name=Wandisco SVN Repo
baseurl=http://opensource.wandisco.com/centos/7/svn-1.8/RPMS/$basearch/
enabled=1
gpgcheck=0

2、清除已安装

yum remove subversion*

3、清除yum缓存

yum clean all

4、直接安装

yum install subversion

5、查看安装结果

[root@localhost yum.repos.d]# svn --version
svn, version 1.8.19 (r1800620)
   compiled Aug 11 2017, 09:34:52 on x86_64-redhat-linux-gnu

Copyright (C) 2017 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.
  - with Cyrus SASL authentication
  - 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.8
  - handles 'http' scheme
  - handles 'https' scheme

出现的异常

Error: Package: subversion-1.8.19-1.x86_64 (WandiscoSVN)
           Requires: libsasl2.so.2()(64bit)

出现上述异常的原因,在配置的yum源中,是从网上拷贝的,CentOS的版本那里复制过来是6,改成7就好了

参考地址

https://tecadmin.net/install-subversion-1-8-on-centos-rhel/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值