Saturday, March 08, 2008

FreeBSD ldconfig

In orde to configure the shared library cache for ELF format on FreeBSD, you can add all the directories that contain the shared libraries to /etc/

shell>cat /etc/

Then run -

shell>ldconfig -elf /etc/

Now you can check the hints file -

shell>strings /var/run/

All of them are added now. If you have shared object missing or not found error when you launch certain application next time, please add the directories that containing its shared library in /etc/ and follow the steps above will do.

Peace ;]

1 comment:

Anonymous said...

Thanks for the tip, I somehow messed up ldconfig, and now my linux binaries attempt to use freebsd libraries instead of the libraries in /compat/linux :(