ld not finding library in cache

From: Steve Maring (steve_at_maring.org)
Date: 07/25/04


Date: 25 Jul 2004 07:31:31 -0700

I must admit I'm a bit of a novice on managing libraries. Can someone
please explain to me why I can see a library in the cache, ala:

[root@yana lib]# ldconfig -p | grep libdb.so
        libdb.so (libc6) => /usr/local/BerkeleyDB.4.2/lib/libdb.so
        libdb.so (libc6) => /usr/local/BerkeleyDB.4.0/lib/libdb.so

but ld will not find it:

[root@yana lib]# ld -ldb
ld: cannot find -ldb

Thanks,
Steve Maring