Re: [INTERFACES] Using libpq without LD_LIBRARY_PATH

From: Margarita Barvinok <brita(at)math(dot)lsa(dot)umich(dot)edu>
To: Matthew Hagerty <matthew(at)venux(dot)net>
Cc: pgsql-interfaces(at)postgreSQL(dot)org
Subject: Re: [INTERFACES] Using libpq without LD_LIBRARY_PATH
Date: 1999-02-05 18:26:20
Message-ID: Pine.SOL.3.96-4hack.990205131935.647F-100000@sewerurchin.math.lsa.umich.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces


I compile and run my C program this way:

gcc -O -o prog2 prog2.c -L/usr/local/postgres/lib
-L/usr/local/postgres/include -lecpg -lpq -lcrypt -lnsl -lsocket
-L/usr/local/kth-krb4-0.9.9/lib -lkrb -ldes -lresolv
-I/usr/local/postgres/include -I/usr/local/postgres/lib

But I know nothing about LD_LIBRARY_PATH environment variable - I just
begin to work with all this stuff.

-Margarita

On Fri, 5 Feb 1999, Matthew Hagerty wrote:

> Greetings,
>
> I am trying to get a simple C program to compile and run without having to
> define the LD_LIBRARY_PATH environment variable. First I tried this:
>
> gcc -o test -I/usr/local/pgsql/include -L/usr/local/pgsql/lib -lpq test.c
>
> Any insight would be greatly appreciated.
>
> Thank you,
> Matthew Hagerty
>
>
>

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Tom Lane 1999-02-05 18:28:24 Re: [INTERFACES] Using libpq without LD_LIBRARY_PATH
Previous Message Matthew Hagerty 1999-02-05 18:13:14 Using libpq without LD_LIBRARY_PATH