From: | Cesar Lombao <lombao(at)dycsa(dot)es> |
---|---|
To: | Héctor Morales <hector(dot)morales(at)edisa(dot)com(dot)gt> |
Cc: | "pgsql-general(at)postgreSQL(dot)org" <pgsql-general(at)postgreSQL(dot)org> |
Subject: | Re: [GENERAL] Problem with compiled C |
Date: | 1999-08-12 11:02:32 |
Message-ID: | Pine.LNX.4.04.9908121259460.952-100000@lombao.dycsa.es |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
> Hi , I have two problems.
>
> 1. When a use pgacces, i try connect with one database, responde the
> next error.
> Error trying to connect to database "xxxx" on host "xxx"
> PostgreSQL error message: Connection to database failed
> connectDB() --connect() failed: Connection refused Is the postmaster
> running (whit -i) at "xxx" and accepting connections on TCP/IP por
> "5432".
>
You must launch postmaster with parameters -S -i, if you have a postgres
file in /etc/rc.d/init.d/ open it, and modify how postgres is started
> I use Postgresql 6.5, on RedHat 6. I don't know why not connect.
>
> 2. When i compiled one program in C, I don't Know what parameter i use
> with gcc
> but i compilied the example of the testc.c in manual of programmer no
> indicate How to compiled.
>
You must compile with -lpq , something like
gcc test.c -lpq
>
> Thanks for yor help.
>
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Bart Ogryczak | 1999-08-12 12:48:08 | converting text to float? |
Previous Message | Howie | 1999-08-12 09:18:31 | Re: [GENERAL] Problem with compiled C |