Installing Subversion on a cPanel Server

Michael_SA

Registered
Apr 12, 2010
2
0
51
How do I install subversion on a cPanel server.

I have tried running this in ssh:
Code:
#yum install subversion
but it gives the following error:
Code:
[email protected] [~]# yum install subversion
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirror.team-cymru.org
* base: dist1.800hosting.com
* extras: mirror.5ninesolutions.com
* updates: mirror.team-cymru.org
Excluding Packages in global exclude list
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package subversion.i386 0:1.4.2-4.el5_3.1 set to be updated
--> Processing Dependency: perl(URI) >= 1.17 for package: subversion
--> Processing Dependency: neon >= 0.25.5-6.el5 for package: subversion
--> Processing Dependency: libneon.so.25 for package: subversion
--> Processing Dependency: libapr-1.so.0 for package: subversion
--> Processing Dependency: libaprutil-1.so.0 for package: subversion
--> Running transaction check
---> Package apr.i386 0:1.2.7-11.el5_3.1 set to be updated
---> Package apr-util.i386 0:1.2.7-7.el5_3.2 set to be updated
---> Package neon.i386 0:0.25.5-10.el5_4.1 set to be updated
---> Package subversion.i386 0:1.4.2-4.el5_3.1 set to be updated
--> Processing Dependency: perl(URI) >= 1.17 for package: subversion
--> Finished Dependency Resolution
subversion-1.4.2-4.el5_3.1.i386 from base has depsolving problems
--> Missing Dependency: perl(URI) >= 1.17 is needed by package
subversion-1.4.2-4.el5_3.1.i386 (base)
Error: Missing Dependency: perl(URI) >= 1.17 is needed by package
subversion-1.4.2-4.el5_3.1.i386 (base)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
Can anyone help?
 

garconcn

Well-Known Member
Oct 29, 2009
159
14
68
I solved the problem using the following way:

1. Removed perl* part from the yum repository(/etc/yum.conf)
2. yum install subversion
3. Add perl* back to the yum.conf file
 

Michael_SA

Registered
Apr 12, 2010
2
0
51
I solved the problem using the following way:

1. Removed perl* part from the yum repository(/etc/yum.conf)
2. yum install subversion
3. Add perl* back to the yum.conf file
Thanks mate. I'll give this a go.
 

romacities

Member
Sep 10, 2010
7
0
51
Denver, CO
cPanel Access Level
Root Administrator
I was having the same issue and came up with the better way to fix the issue and no need to remove/install perl.
I hope this helps everyone and we can stop looking for a solution finally.

/http://sdkit.com/tutorial/how-to-fix-missing-dependency-perluri-1-17-is-needed-by-package-subversion/

Good luck.
 

luigidelgado

Well-Known Member
Nov 6, 2010
119
5
68
Mexico
cPanel Access Level
Root Administrator
Twitter
You can insted force install the required RPM:
Code:
rpm -ivh http://mirror.centos.org/centos-5/5.4/os/i386/CentOS/perl-URI-1.35-3.noarch.rpm
yum install subversion
EDIT:
BTW, This is not needed in Centos/CloudLinux 6.x
 
Last edited:

shacker23

Well-Known Member
Feb 20, 2005
263
1
168
Awesome that these workarounds are no longer needed on CentOS 6. "yum install subversion" just works, finally. Thanks for the tip.
 

shacker23

Well-Known Member
Feb 20, 2005
263
1
168
Oops, I spoke too soon. This method "yum install subversion" will get you a three year old version!

svn --version
svn, version 1.6.11 (r934486)
compiled Jun 23 2012, 00:28:25

Copyright (C) 2000-2009 CollabNet.

What in the world??? Does anyone have a decent recipe for getting a simple yum install to give you an up to date version of svn?
 
You can insted force install the required RPM:
Code:
rpm -ivh http://mirror.centos.org/centos-5/5.4/os/i386/CentOS/perl-URI-1.35-3.noarch.rpm
yum install subversion
Do not forget to change link to reflect version of CentOS. For example, for Centos 5.5 link would be
Code:
http://mirror.centos.org/centos-5/5.5/os/i386/CentOS/perl-URI-1.35-3.noarch.rpm