Random Linux

Linux, video games and web hosting

When you are installing subversion using yum on a server that has cPanel on it, you will receive an error about missing dependencies for perl(URI), which will look something like this:

[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

To work around this issue, you can edit your /etc/yum.conf file to remove the part that tells the package that it needs those dependencies. So first you will want to back up the current configuration to make sure that you can go back to the original when you are done.

[email protected] [/]# cp /etc/yum.conf /etc/yum.conf-bak

Then the file will look like this.

[email protected] [/]# nano /etc/yum.conf

[main]
exclude=apache* bind-chroot courier* dovecot* exim* httpd* mod_ssl* mysql* nsd* perl* php* proftpd* pure-ftpd* ruby* spamassassin* squirrelmail*
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1

# Note: yum-RHN-plugin doesn’t honor this.
metadata_expire=1h

# Default.
# installonly_limit = 3

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

On the second line, you will want to delete perl*, then save the file and exit out. Once you do that, you will be able to install the subversion package using yum as normal. Once the package is installed successfully, just rename the original file back to yum.conf and overwrite the edited one, and it is installed!

February 28th, 2011

Posted In: How To

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *

*