1

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

Ran rpm -ivh on the above file and getting the following error. What should I install (yum install ??) to get rid of the following error.

$ 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

I found that if I install from the source .tar.gz files, then it's a hassle to install 2 different versions of svn on a machine as it requires various pre-requisite yum modules to be installed first and then make commands to get it to work and I'm using Ansible.

The easiest way is to run "sudo yum install subversion" but it's not giving me the latest 1.9.2 version. Using this way, I'm getting 1.6.11 or close.

Is there any list which shows the complete list of tools required to be installed in simple steps (possibly multiple versions). i.e.

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

4

5 回答 5

5

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

使用以下内容创建一个新的 repo 文件/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" 安装颠覆

于 2016-08-31T07:13:06.127 回答
2

您可以使用安装构建依赖项

   yum-builddep foo.src.rpm
于 2015-11-26T09:01:13.857 回答
1

我在 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!
于 2016-05-17T20:21:45.560 回答
1

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

在 RHEL6 上安装 1.9.9 的情况下,这意味着在 serf-1.3.7-1.x86_64.rpm 上进行 yum 安装,然后 yum install subversion-1.9.9-1.x86_64.rpm 那些 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的 libserf-1.3.8-1.el7.x86_64.rpm ;O=A然后是你想要的 1.9 版本。

希望有帮助。

于 2018-08-09T12:42:27.207 回答
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

于 2021-07-20T12:31:05.687 回答