Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a CentOS server, VPS. After running this command I can't work with server and get the same error in all actions (SSH, Login, ls and ...)

The command:

ln -s /lib/  /lib/ -f

And the error is:

/sbin/shutdown: error while loading shared libraries: cannot open shared object file: No such file or directory

I have VNC to server but because I can't login to server, that's unusable.

Thanks in advance.

share|improve this question
up vote 2 down vote accepted

Looks like you overwrote one of the links for your C library. Why did you do this? There's no reason you should be modifying links or library files.

Where did /lib/ come from? Cecking my CentOS 4, 5 and 6 systems, that file is not included in the distribution.

What version of CentOS is this? On CentOS 5, should link to

[root@xt ~]# ls -l /lib/libc*
-rwxr-xr-x 1 root root 1689728 Apr 20 07:32 /lib/
lrwxrwxrwx 1 root root      11 Apr 29 22:27 /lib/ ->
share|improve this answer

You may be able to recover from your error by running ldconfig.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.