473,378 Members | 1,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

psql error:cannot open libpq.so.3

Hi All,
Took a break from developing on pgsql 7.3 to set up network printing
where I added another host(localhost 193.168.1.2) in red hat network
settings. Later, I could start postmaster but when I started psql I got
the following error when I issue this command:

psql -h localhost -U postgres nba

-bash-2.05b$ psql -h localhost -U postgres nba
psql: error while loading shared libraries: libpq.so.3: cannot open
shared object file: No such file or directory
-bash-2.05b$

I tool this as an opportunity to upgrade from 7.3.2 rpm to 7.3.4.source.
Now I'm is a real pickle. I can create the test database but still get
the same error even though I wiped out the pgsql directories upon
installation.

I checked and libpq.so.3 has a path of /var/lib/pgsql/libpq.so.3, and
the database directory is /usr/local/pgsql. All the files in the pgsql
directories are owned by 'postgres'.
Any ideas what could be causing the problem?
Thanks in advance,
Phil Campaigne
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

Nov 12 '05 #1
1 5656
Phil Campaigne <pc********@charter.net> writes:
-bash-2.05b$ psql -h localhost -U postgres nba
psql: error while loading shared libraries: libpq.so.3: cannot open
shared object file: No such file or directory


This could mean either that libpq.so itself is not where your dynamic
linker will look for it, or that some library it depends on (libssl
is a possible example) is not where your dynamic linker will look for
it.

Try first "ldd /path/to/psql" to verify that psql's reference to
libpq.so is being resolved sanely. If so, do ldd on libpq.so to see how
its references are resolved (or not). If necessary, check the
referenced libraries, etc, till you find what's not resolved.

Once you know where the problem is, install the needed library, or
update your ldconfig configuration so it can find that library.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Sorisio, Chris | last post by:
Ladies and gentlemen, I've imported some data from a MySQL database into a Python dictionary. I'm attempting to tidy up the date fields, but I'm receiving a 'mx.DateTime.Error: cannot convert...
1
by: Phil Campaigne | last post by:
Hi Tom, THanks for your response. Here are my results: -bash-2.05b$ ldd /usr/local/pgsql/bin/psql libpq.so.3 => /usr/local/pgsql/lib/libpq.so.3 (0x40013000) libz.so.1 => /usr/lib/libz.so.1...
8
by: Kragen Sitaker | last post by:
ERROR: Cannot insert a duplicate key into unique index pg_class_relname_nsp_index We've been getting this error in our application every once in a while --- typically once an hour to once a day,...
0
by: Matthew Louden | last post by:
I am trying to implement the sort event in data grid. I set the data grid's AllowSorting property = True. I implement the following code that should be the event will fire when the user click any...
5
by: Nathan Sokalski | last post by:
When running a page I am working on, I recieve the following error: Cannot use a leading .. to exit above the top directory. I suspect this has something to do with the problem I posted in a...
2
by: moondaddy | last post by:
I have a simple sample site I'm building in asp.net 2.0. I created a master page and a default.aspx content page in the project's root directory. Then I created a subfolder called content and...
1
by: Jim Michaels | last post by:
=> Array ( => UML:CLASS => open => 5 => Array ( => .:00000000000008EC => quiz_batteries => public
2
by: fniles | last post by:
I am using VB.NET 2005 and MS Access. I use OLEDbCommand ExecuteNonQuery to delete a record from a database. Whenever the program gets a message, it creates a new thread to process that message....
0
by: SMH | last post by:
Hi All, I am currently learning .Net 2, studying for 70-528. I've hit a bit of a brick wall with DataColumn.Expression. As I understand it, this can be used to (For example) concatenate two...
2
by: sam.barker0 | last post by:
Hi , I am having 3 functions.When I step through when func b returns to funca.it throws an error "cannot find function bounds" funca() { .... ... funcb(); }
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.