pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ludek Finstrle <xfinstrl@informatics.muni.cz>
To: Prof. L M Patnaik <lalit@micro.iisc.ernet.in>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Postgres problem
Date: Fri, 20 Apr 2001 18:58:30 +0200
Message-ID: <20010420185830.C23123@anxur.fi.muni.cz> (raw)
In-Reply-To: <Pine.SGI.4.10.10104191831150.839-100000@micro.iisc.ernet.in>
References: <Pine.SGI.4.10.10104191831150.839-100000@micro.iisc.ernet.in>

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



view thread (5+ messages)  latest in thread

Message-ID: <20010420185830.C23123@anxur.fi.muni.cz>
Permalink:  ../20010420185830.C23123@anxur.fi.muni.cz/
Also on:    postgresql.org/message-id/20010420185830.C23123@anxur.fi.muni.cz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: xfinstrl@informatics.muni.cz, lalit@micro.iisc.ernet.in
  Subject: Re: Postgres problem
  In-Reply-To: <20010420185830.C23123@anxur.fi.muni.cz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox