I've got a problem linking to shared libraries. Specifically this is a nodejs module linking to libmemcached, but I'm guessing the problem is more generic than that. The file it cannot find/open is present, and everything is operating under /usr/local. Running as root doesn't let it see the file either.
I'm running CentOS 5.4
[node-memcache]$ node tests/test.js
Error: libmemcached.so.4: cannot open shared object file: No such file
or directory
[...]
[node-memcache]$ sudo find /usr -name "libmemcached.so.4"
/usr/local/lib/libmemcached.so.4