Slackware HowTo

Use ldconfig for shared libraries on Slackware

Refresh the dynamic linker cache after libraries are installed outside standard paths.

1. When to use it

Useful when a binary cannot find a newly installed or manually built library.

ldconfig | ldd | shared libs | loader cache | lib64

2. Base setup

printf '/usr/local/lib64\n' > /etc/ld.so.conf.d/local.conf
ldconfig
ldconfig -p | grep libssl

Adjust host names, IPs, interfaces, paths, and versions to the real system before making the change persistent.

3. Quick verification

ldd /usr/bin/curl | head
ldconfig -v 2>/dev/null | head
cat /etc/ld.so.conf.d/local.conf

Confirm that the output matches the expected state before considering the intervention complete.

4. Operational notes

After custom installs, refreshing the cache avoids wasted debugging on very basic loader errors.

Quick checklist

[ ] Steps completed\n[ ] Config updated\n[ ] Tests executed\n[ ] Rollback ready\n[ ] Logs checked

Back to Linux HowTo