Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to find libraries

Status
Not open for further replies.

nroberts420

Programmer
Jun 24, 2003
27
US
I've just started using RH9 a few months ago and when I go to install some programs I get library not found errors. When I get these errors I download the libraries and run ./configure and then run make install. And then I try to do the install again I still get the same errors. I know I should be setting enviornment variables when I install the libraries but what variables should I edit? And along the same line is there a special directory I should put libraries in when I install them?

Thanx for your help
Nate
 
Is it your shared object libraries that it can't find? Try running "ldconfig -v".
 
the libraries that it can't find is glibc or gtk. I installed then into the /usr/lib directory but it doesn't list those when I run ldconfig -v.
 
is there a file that I need to put that line into so it will always do that on login?

nate
 
I am using SuSE, so I don't know exactly how
RedHat handles this stuff, but probably either:

[tt]~/.profile [/tt]
or
[tt]~/.bashrc[/tt]
 
Ok, I've got it working now so it knows that the library is there but I'm getting an error from pkg-config:
" 'pkg-config --modversion glib-2.0' returned 2.2.0, but GLIB (2.2.1) was found! If pkg-config was correct, then it is best to remove the old version of GLib." But looking at this error I don't have GLIB 2.2.1 installed. I have version 2.2.7 installed. What the heck is pointing to the wrong thing? I set the PKG_CONFIG_PATH variable to point to the right pkgconfig file so what is throwing me off?
 
This is what I get:

ldconfig -p | grep glib
libgthread-2.0.so.0 (libc6) => /opt/glib2.2.0/lib/libgthread-2.0.so.0
libgthread-2.0.so (libc6) => /opt/glib2.2.0/lib/libgthread-2.0.so
libgobject-2.0.so.0 (libc6) => /opt/glib2.2.0/lib/libgobject-2.0.so.0
libgobject-2.0.so (libc6) => /opt/glib2.2.0/lib/libgobject-2.0.so
libgmodule-2.0.so.0 (libc6) => /opt/glib2.2.0/lib/libgmodule-2.0.so.0
libgmodule-2.0.so (libc6) => /opt/glib2.2.0/lib/libgmodule-2.0.so
libglib-2.0.so.0 (libc6) => /usr/lib/libglib-2.0.so.0
libglib-2.0.so.0 (libc6) => /usr/local/lib/libglib-2.0.so.0
libglib-2.0.so.0 (libc6) => /opt/glib2.2.0/lib/libglib-2.0.so.0
libglib-2.0.so (libc6) => /usr/local/lib/libglib-2.0.so
libglib-2.0.so (libc6) => /opt/glib2.2.0/lib/libglib-2.0.so
libglib-1.2.so.0 (libc6) => /usr/lib/libglib-1.2.so.0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top