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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-12-2003, 04:10 PM
|
#1
|
Member
Registered: Feb 2003
Location: NorthEast
Distribution: RH 8.0
Posts: 34
Rep:
|
can't installing Postgresql
When I try to install Postgesql, I got this message:
[root@localhost root]# rpm -iv postgresql-7.2.2*
warning: postgresql-7.2.2-1.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
postgresql-libs = 7.2.2 is needed by postgresql-7.2.2-1
libpq.so.2 is needed by postgresql-7.2.2-1
any idea?
|
|
|
02-12-2003, 04:17 PM
|
#2
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Install postgresql libs first? :)
cheers,
Tink
|
|
|
02-12-2003, 05:25 PM
|
#3
|
Member
Registered: Feb 2003
Location: NorthEast
Distribution: RH 8.0
Posts: 34
Original Poster
Rep:
|
got it, thanks
|
|
|
02-13-2003, 11:54 AM
|
#4
|
Member
Registered: Feb 2003
Location: NorthEast
Distribution: RH 8.0
Posts: 34
Original Poster
Rep:
|
After installation, I can't find any files associated with the postgresql. Does anybody know how to start the db? I got this error when running the 'psql' command:
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
How do I fix this problem and start the db? In addition, I like to access the db with JDBC. I read the doc on the postgresql.com and still don't understand how to communicate with the db. I already installed JDBC driver, but I don't know how to test it. BTW, I'm planning using JSP application for this db.
|
|
|
02-13-2003, 01:28 PM
|
#5
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
You sure you read the docs? :)
They are quite straight forward ...
Check whether postgresql starts is up & running
Code:
ps -A | grep postmaster
If it's not, do:
Code:
su - postgres
pg_ctl start
Cheers,
Tink
|
|
|
02-13-2003, 01:56 PM
|
#6
|
Member
Registered: Feb 2003
Location: NorthEast
Distribution: RH 8.0
Posts: 34
Original Poster
Rep:
|
got it it running finally. I found a differnet doc from http://www.opennet.ru/docs/HOWTO/Pos...-6.html#ss6.1.
that help me. The reason is that I must install all packages of postgresql. I didn't install postgresql-server-7.2.2-1.i386.rpm at the time. Oh, I don't understand why I must switch user to postgres without adding postgres user. I installed it with root. Is this mean I have to use postgres user everytime I want to work with the db?
|
|
|
02-13-2003, 02:21 PM
|
#7
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
I have never installed Postgres from RPM's,
so wouldn't know what the makers of an RPM
do to it ...
The default is *not* to run postmaster from
user root (security measures, I believe)
What one is supposed to do is to create an
entry in rc.local that starts the dbm as user
postgres.
And know, you don't have to su to postgres to
use the database :)
Cheers,
Tink
|
|
|
All times are GMT -5. The time now is 05:49 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|