From: | Ludek Finstrle <xfinstrl(at)informatics(dot)muni(dot)cz> |
---|---|
To: | "Prof(dot) L M Patnaik" <lalit(at)micro(dot)iisc(dot)ernet(dot)in> |
Cc: | pgsql-interfaces(at)postgresql(dot)org |
Subject: | Re: Postgres problem |
Date: | 2001-04-20 16:58:30 |
Message-ID: | 20010420185830.C23123@anxur.fi.muni.cz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
Prof. L M Patnaik napsal(a):
>
> Hello:
>
> I am having problem interfacing the postgres database with the
> frontend(libpq),i.e using C.Database runs fine.
>
> PROBLEMS ARE:
> 1)When compiling the C-program given in the
> example for connecting the database to the
> frontend using
> $gcc -I /home/guest/pgsql/include test.c
Try something like this
$gcc -I /home/guest/pgsql/include -L /home/guest/pgsql/lib -lpq test.c
I think that postgres libraries are stored in /home/guest/pgsql/lib.
> ...............................................................
>
> 2)When I want to use the command
> $createlang c (dbname)
> OUTPUT:
> createlang:missing required argument PGLIB directory.
You don't have specified the path to PGLIB. createlang can't find them.
Try set environment variable PGLIB (e.g. in bash:
export PGLIB=/home/guest/pgsql/lib). Or append this path to environment
variable LD_LIBRARY_PATH.
Regards
Luf
From | Date | Subject | |
---|---|---|---|
Next Message | Mark Stosberg | 2001-04-20 18:40:41 | Re: Client/Server Security question |
Previous Message | Lonnie Cumberland | 2001-04-20 15:04:26 | Client/Server Security question |