Tuesday, March 27, 2012

Fix: cvs setup error with libcom_err.so.3


Recently, i tried to setup cvs on of my dev linux boxes. When i ran cvs command, i got
# cvs

Error while loading shared libraries: libcom_err.so.3: cannot open shared Object File


libcom_err.so comes from Kerberos(Krb5).

How to resolve this:
1) First check your Red hat version. Not sure but there is a weird thing with this file naming convention. For old Red hat versions, the file was named as  "libcom_err.so.3" where as the latest red hat versions of it are "libcom_err.so.2" and "/libcom_err.so.2.1". I know; this should be the other way round & not sure about the reasoing behind this

2) Run locate command to see if you have this .so file or not
# locate libcom_err
/lib/libcom_err.so.2
/lib/libcom_err.so.2.1

On my CentOS, i have this file under /lib. It seems that i am having version 2.x on my machine. Since these are latest versions compared to 3. I tried making a symlink from "3" to "2.1"

# ln -s /usr/lib/libcom_err.so.2.1 /usr/lib/libcom_err.so.3 

This solved the cvs error


No comments:

Post a Comment