LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-19-2006, 10:00 AM   #1
mschrank99
LQ Newbie
 
Registered: Jun 2006
Posts: 20

Rep: Reputation: 0
Exclamation Library loaded, but program thinks it isn't. Frusturating.


The error I get:

./pgadmin3: error while loading shared libraries: libpq.so.4: cannot open shared object file: No such file or directory

Now this is where people say RTFM, add the location of the library to the /etc/ld.so.conf- but I did that already. In fact, ldconfig -v says it's already installed!
...
/usr/local/pgsql/lib:
...
libpq.so.4 -> libpq.so.4.0

This is absolutely crazy. Please help. This is almost as bad as the phppgadmin's meaningless "login failed" message.
 
Old 06-19-2006, 10:04 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Do you really have the library file?
Try also:
Code:
ldd pgadmin3
(should mention that the lib can't be found.)
and
Code:
whereis libpq.so.4
to locate the file.

The path to this library probably needs to be in your $LD_LIBRARY_PATH variable or something like that as well.

Adding it to some conf file may not do the trick. You may need to make your system re-read the conf file to actually start using the lib.
 
Old 06-19-2006, 10:27 AM   #3
mschrank99
LQ Newbie
 
Registered: Jun 2006
Posts: 20

Original Poster
Rep: Reputation: 0
Thank you.

Yes it is definately there. My system didn't seem to have a $LD_LIBRARY_PATH variable because I typed in "echo $LD_LIBRARY_PATH" and nothing came out. So anyway I typed in LD_LIBRARY_PATH=/usr/local/pgsql/bin"

ran ldd pgadmin3 again, and it still says that the library is file not found.

I'm just not understanding what is going on here, it's in my conf file and ldconfig says it is there, what more does linux want?

As far as rereading the conf, isn't that what ldconfig does and if it shows it as loaded (with the -v switch) then isn't it supposed to work?
 
Old 06-20-2006, 02:39 AM   #4
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Quote:
LD_LIBRARY_PATH=/usr/local/pgsql/bin
Isn't there a "lib" directory? "bin" is typically used to store the binary (compiled) programs, not the libraries.

Yeah, you may be right about ldconfig. I personnally haven't used it yet, so I can't help you with that.
Maybe you can try adding the lib path to your $PATH as well?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change the library used by a program. wangjinyi Fedora 1 11-23-2005 10:31 AM
MIT Library with GPL Program? Matir Programming 5 07-10-2005 09:56 PM
current working directoy is changed if program is loaded through services shahidawan Programming 1 03-31-2005 05:43 AM
not able to include archived C library into my program gauravsahni Programming 4 11-15-2004 02:30 AM
include a library in program calble Programming 1 10-09-2003 12:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration