What distro are you using?
What apps do you have installed - eg - Gnome,KDE,Mozilla,etc
You are going to have to manually rebuild the ld.so.conf file so do not reboot your system.
At the very least it will need /lib /usr/lib /usr/X11R6/lib.
You can use echo to rebuild it like so:
echo "/lib" > /etc/ld.so.conf <---- start it fresh
echo "/usr/lib" >> /etc/ld.so.conf <-------append to the file
echo "/usr/X11R6/lib" >> /etc/ld.so.conf
the >> means append and the > means start from new.
You can view the current libraries like so:
ldconfig -p <---this prints out the lib links which you can extract the lib directories from that you need to put in the ld.so.conf
or dump it to a file:
ldconfig -p > temp.ld
ld.so.conf only needs the directory names and it will link the libs from there. The ld.so.cache is what is getting printed out with ldconfig -p.
You can create a script with bash to automate this a bit and you can use cut and awk to get the names of the directories and then uniq to strip the dups. You can then dump these to a new ld.so.conf file.
If you want, I can come up with a script to do this if you are not that familiar with bash - just let me know.


ops:
Reply With Quote

Bookmarks