be careful what you unlink
So I wanted to update my libc by linking to a newer version of the library. Right.
Long story short, I unlinked it and everything stopped working. No more ls, mv, ln. Nothing. So after frantically searching on google I stumbled upon this:
> export LD_PRELOAD=/lib/libc.so.5.0.9 if you’re using bash,
> setenv LD_PRELOAD /lib/libc.so.5.0.9 for tcsh
You have to point the variable to a valid libc library and it’ll temporarily fix the prob. After I did this, I linked it back to the original libc and everything worked perfectly. The funny thing is, I thought there was a newer version in /usr/lib, but it turned out that it wasn’t valid. So I just pulled the hair out of my head for no reason while learning to never unlink a library ever again.
I’m such a n00b.
About this entry
You’re currently reading “be careful what you unlink,” an entry on Monochromatical
- Published:
- 12.02.08 / 8pm
- Category:
- linux









2 Comments
Jump to comment form | comments rss [?] | trackback uri [?]