I’m working on building an application from source. After manually building one of the dependencies (chromaprint https://github.com/acoustid/chromaprint) it gets installed into /usr/local/lib:
$ ls -lah /usr/local/lib/libchromaprint.so* lrwxrwxrwx 1 root root 19 May 27 08:44 /usr/local/lib/libchromaprint.so -> libchromaprint.so.1 lrwxrwxrwx 1 root root 23 May 27 08:44 /usr/local/lib/libchromaprint.so.1 -> libchromaprint.so.1.4.4 -rwxr-xr-x 1 root root 1.9M May 27 10:13 /usr/local/lib/libchromaprint.so.1.4.4
I’ve created a conf file under /etc/ld.so.conf.d:
$ cat /etc/ld.so.conf.d/local.conf /usr/local/lib
However ld apparently still can’t find the library:
$ ld -lchromaprint --verbose /snipped/ ================================================== ld: mode elf_x86_64 attempt to open /usr/x86_64-generic-linux/lib64/libchromaprint.so failed attempt to open /usr/x86_64-generic-linux/lib64/libchromaprint.a failed attempt to open /usr/lib64/libchromaprint.so failed attempt to open /usr/lib64/libchromaprint.a failed attempt to open /usr/lib32/libchromaprint.so failed attempt to open /usr/lib32/libchromaprint.a failed attempt to open /usr/lib/libchromaprint.so failed attempt to open /usr/lib/libchromaprint.a failed attempt to open /usr/x86_64-generic-linux/lib/libchromaprint.so failed attempt to open /usr/x86_64-generic-linux/lib/libchromaprint.a failed ld: cannot find -lchromaprint
Is there something I’m missing here in making sure ld is looking in /usr/local/lib as well? I guess it could also be an issue with the application I’m trying to build that it isn’t looking in /usr/local/lib…but that seems like an obvious place to include for dependency libraries.
Any help would be appreciated.