Copied from my answer here: https://stackoverflow.com/a/9368199/485088
Run
ldconfigas root to update the cache – if that still doesn’t help, you need to add the path to the fileld.so.conf(just type it in on its own line) or better yet, add the entry to a new file (easier to delete) in directoryld.so.conf.d.