Re: [INTERFACES] Using libpq without LD_LIBRARY_PATH

From: James Thompson <jamest(at)math(dot)ksu(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 19:15:34
Message-ID: Pine.GSO.4.05.9902051309470.987-100000@noether.math.ksu.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

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:
>

Depending on your OS you may have an /etc/ld.so.conf file.
Simply add what you normally put in your LD_LIBRARY_PATH into that file.
Then do a ldconfig -v as root (-v optional but you can see it working) and
the libs will be available without the var set. This is what I do on my
linux systems and it works well.

On my solaris systems I've stuck with what the set up created before I got
here. A shell script is called by all users logins. It defines the
LD_LIBRARY_PATH for everyone when they log in. I have no idea if there is
a better way as this works so I've never bothered to mess with it.

->->->->->->->->->->->->->->->->->->---<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<
James Thompson 138 Cardwell Hall Manhattan, Ks 66506 785-532-0561
Kansas State University Department of Mathematics
->->->->->->->->->->->->->->->->->->---<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Byron Nikolaidis 1999-02-05 19:48:54 [Fwd: [NOVICE] ODBC driver and solaris on sparc]
Previous Message Matthew Hagerty 1999-02-05 18:42:43 Re: [INTERFACES] Using libpq without LD_LIBRARY_PATH