Results 1 to 4 of 4
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 ...
- 01-27-2008 #1Just Joined!
- Join Date
- Jan 2008
- Location
- New England
- Posts
- 6
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.
- 01-27-2008 #2
You can compile libraries into /usr/lib by doing
If the libraries are already in /usr/local/lib, you can doCode:./configure --prefix=/usr
before you ./configure a package.Code:export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
- 01-27-2008 #3Linux Engineer
- Join Date
- Nov 2004
- Location
- Ft. Polk, LA
- Posts
- 796
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
- 01-27-2008 #4Just Joined!
- Join Date
- Jan 2008
- Location
- New England
- Posts
- 6
Adding it to PKG_CONFIG_PATH worked perfectly.
Thanks!


Reply With Quote
