Install latest SVN 1.9.2 on CentOS – libserf-1.so.1 is needed error

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

  • Can I nest subrepos in Mercurial?
  • Should I commit Godeps/_workspace or is Godeps.json enough?
  • Depend on a branch or tag using a git URL in a package.json?
  • CentOS install mod_dav_svn
  • spring-core dependency version error with a Jenkins Plugin
  • Convert Doc to PDf with documents4j
  • 3 Solutions collect form web for “Install latest SVN 1.9.2 on CentOS – libserf-1.so.1 is needed error”

    You can install build dependencies using

       yum-builddep foo.src.rpm
    

    To properly install subversion 1.9 from Wandisco, you should do the following:

    Create a new repo file /etc/yum.repos.d/wandisco-svn.repo
    with following content:

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

    Then install svn with following command:

    yum –disablerepo=”*” –enablerepo=”WandiscoSVN” install subversion

    I had same issue on Cent OS7. Seems like i did not uninstalled subversion-libs version that comes with CentOS by default. After removing it, i was able to install latest subversion

     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!
    
    Git Baby is a git and github fan, let's start git clone.