在CentOS上安装最新的SVN 1.9.2 - 需要libserf-1.so.1错误

时间:2015-11-26 00:11:12

标签: svn dependencies rpm centos6.5 svn-client

CentOS 6.5 Subversion rpm:http://opensource.wandisco.com/centos/6/svn-1.9/RPMS/x86_64/subversion-1.9.2-1.x86_64.rpm

在上述文件中运行 rpm -ivh 并收到以下错误。我应该安装什么(yum install ??)以消除以下错误。

$ rpm -ivh subversion-1.9.2-1.x86_64.rpm
warning: subversion-1.9.2-1.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 3bbf077a: NOKEY
error: Failed dependencies:
        libserf-1.so.1()(64bit) is needed by subversion-1.9.2-1.x86_64

我发现如果我从源.tar.gz文件安装,那么在机器上安装2个不同版本的svn会很麻烦,因为它需要先安装各种先决条件的yum模块然后再安装命令让它工作,我使用Ansible。

最简单的方法是运行" sudo yum install subversion"但它没有给我最新的1.9.2版本。使用这种方式,我得到1.6.11或关闭。

是否有任何列表显示了以简单步骤(可能是多个版本)安装所需的完整工具列表。即。

sudo yum -y install pre-requisite-tools-abc xyz giga1
制作|| make prefix = / home / user / tools / subversion-1.9.2
制作|| make prefix = / home / user / tools / subversion-1.9.2 install
svn --version

5 个答案:

答案 0 :(得分:2)

要从Wandisco正确安装subversion 1.9,您应该执行以下操作:

创建新的回购文件 /etc/yum.repos.d/wandisco-svn.repo 以下内容:

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

然后使用以下命令安装svn:

yum --disablerepo =" *" --enablerepo =" WandiscoSVN"安装颠覆

答案 1 :(得分:1)

您可以使用

安装构建依赖项
   yum-builddep foo.src.rpm

答案 2 :(得分:0)

我在Cent OS7上遇到了同样的问题。好像我没有卸载默认情况下附带CentOS的subversion-libs版本。删除后,我能够安装最新的颠覆

 yum remove subversion-libs
Loaded plugins: fastestmirror, langpacks
Resolving Dependencies
--> Running transaction check
---> Package subversion-libs.x86_64 0:1.7.14-10.el7 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================
 Package                              Arch                        Version                               Repository                      Size
=============================================================================================================================================
Removing:
 subversion-libs                      x86_64                      1.7.14-10.el7                         @anaconda                      2.5 M

Transaction Summary
=============================================================================================================================================
Remove  1 Package

Installed size: 2.5 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : subversion-libs-1.7.14-10.el7.x86_64                                                                                      1/1
  Verifying  : subversion-libs-1.7.14-10.el7.x86_64                                                                                      1/1

Removed:
  subversion-libs.x86_64 0:1.7.14-10.el7

Complete!



yum install subversion-1.9.4-1.x86_64.rpm
Loaded plugins: fastestmirror, langpacks
Examining subversion-1.9.4-1.x86_64.rpm: subversion-1.9.4-1.x86_64
Marking subversion-1.9.4-1.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package subversion.x86_64 0:1.9.4-1 will be installed
--> Processing Dependency: libserf-1.so.0()(64bit) for package: subversion-1.9.4-1.x86_64
Loading mirror speeds from cached hostfile
 * base: cosmos.illinois.edu
 * extras: www.gtlib.gatech.edu
 * updates: mirror.teklinks.com
--> Running transaction check
---> Package libserf.x86_64 0:1.3.7-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================
 Package                       Arch                      Version                         Rep
============================================================================================
Installing:
 subversion                    x86_64                    1.9.4-1                         /su
Installing for dependencies:
 libserf                       x86_64                    1.3.7-1.el7                     Wan

Transaction Summary
============================================================================================
Install  1 Package (+1 Dependent package)

Total size: 9.0 M
Installed size: 9.1 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libserf-1.3.7-1.el7.x86_64
  Installing : subversion-1.9.4-1.x86_64
  Verifying  : subversion-1.9.4-1.x86_64
  Verifying  : libserf-1.3.7-1.el7.x86_64

Installed:
  subversion.x86_64 0:1.9.4-1

Dependency Installed:
  libserf.x86_64 0:1.3.7-1.el7

Complete!

答案 3 :(得分:0)

因此,这里的真正问题是您缺少农奴依赖。在其他版本(例如1.9.9)和其他操作系统(例如RHEL6)上,您也会遇到相同的错误。如果您的服务器可以访问Internet,则AleksandarPavić的答案非常有用,因为您要添加OpenSource Wandisco RPM作为存储库,并让yum找到所需的资源。我的确在CentOS 7.2上进行了测试,并且效果很好。如果您没有互联网连接才能访问Wandisco,一个更简单的解决方法也将起作用,这是首先安装农奴依赖,这是我必须要做的,因为我的RHEL6 SVN仅是内部的,不会路由到Wandisco。

在RHEL6上安装1.9.9的情况下,这意味着在serf-1.3.7-1.x86_64.rpm上进行yum安装,然后yum在这些RPM上安装subversion-1.9.9-1.x86_64.rpm。来自http://opensource.wandisco.com/rhel/6Server/svn-1.9/RPMS/x86_64/?C=M;O=A对我有用。

$ rpm -qlp serf-1.3.7-1.x86_64.rpm
/usr/lib64/libserf-1.so
/usr/lib64/libserf-1.so.1
/usr/lib64/libserf-1.so.1.3.0

对于CentOS7,我相信您正在查看http://opensource.wandisco.com/centos/7/svn-1.9/RPMS/x86_64/?C=M;O=A中的libserf-1.3.8-1.el7.x86_64.rpm,然后是您想要的1.9版本。

希望有帮助。

答案 4 :(得分:0)

您可以使用以下命令在 amazon linux 2 或 centos7 上安装 svn 1.9 版本。

rpm -ivh http://opensource.wandisco.com/centos/7/svn-1.9/RPMS/x86_64/subversion-1.9.12-1.x86_64.rpm