Unable to find libraries
This should be a really simple problem to fix, but I can't seem to figure it out.
When I compile libraries, for example giblib, they install to /usr/local/lib/
Unfortunately, when I try to compile programs which rely on those libraries, they seem unable to recognize that they exist.
My current solution has been to simply copy the libraries from /usr/local/lib to /lib/ by hand, but that is a rather stupid solution, and there must be a better way, right?
Help would be appreciated.
Thanks in advance.
You can compile libraries into /usr/lib by doing
If the libraries are already in /usr/local/lib, you can do
before you ./configure a package.
Add /usr/local/lib to /etc/ld.so.conf
Ensure that the above command with PKG_CONFIG_PATH is run in .profile or .bashrc or something
You may have to run ldconfig sometimes if a lib isn't recognized right away
Adding it to PKG_CONFIG_PATH worked perfectly.