Installing Subversion on CPanel/WHM

Just a quick tip for those who (like me) have wanted to install the Subversion client on their CPanel/WHM VPS. (I have my repositories hosted with SVNRepository.com so no need for a Subversion server to be set up). I have a couple of VPS servers set up and wanted to install subversion on both. After a bit of Googling I worked out that by simply logging into the command prompt as root and installing Subversion via YUM

# yum install subversion

It should install fine, and on the first of my VPSs (CENTOS Enterprise 4.6 x86_64) it did. Great!

However, on the second VPS, it came up with the error:

Error: Missing Dependency: perl(URI) >= 1.17 is needed by package subversion

This VPS is running CENTOS Enterprise 4.6 i68. Initially I tried to install Perl URI via YUM, using the command yum perl-URI, but it reported that there was nothing to do, so I tried to clean the cache (yum clean all) and try again, but still no luck. The solution was to find a suitable RPM, download and install manually. After a bit of searching, I found a list of RPMS, one of which was suitable for my distro. I installed the RPM, everything went well, so had another go at installing subversion and all worked fine. These are the steps I followed:

# wget ftp://ftp.wavelink.com.tw/pub/Cent4464/CentOS/RPMS/perl-URI-1.30-4.noarch.rpm
# rpm -i perl-URI-1.30-4.noarch.rpm
# yum install subversion

To test I tried

# svn --version
svn, version 1.1.4 (r13838)
compiled Aug 21 2005, 20:56:55
.... etc .....

Which means it’s working!

Hope this helps someone out there.

Note: This post has been copied from the old ibrow.com website, originally posted on 2008-03-27. See this entry for more details

  • Peter

    You don’t need to download perl-uri from random repositories – just remove perl* from the list of blocked updates in /etc/yum.conf, install subversion (and update perl-uri) and then replace perl* in the yum conf so that it doesn’t actually update perl in future.

  • Peter

    You don't need to download perl-uri from random repositories – just remove perl* from the list of blocked updates in /etc/yum.conf, install subversion (and update perl-uri) and then replace perl* in the yum conf so that it doesn't actually update perl in future.

  • http://www.umbeehosting.co.uk/vps-hosting Virtual Server Hosting

    We don’t think this won’t be possible in the near future. Still thanks to your simple guide through this.

  • http://www.umbeehosting.co.uk/vps-hosting Virtual Server Hosting

    We don't think this won’t be possible in the near future. Still thanks to your simple guide through this.