Received: from bgalli.mug.org (bajor.mug.org [207.158.132.1]) by hub.org (8.9.2/8.9.1) with ESMTP id DAA54827 for ; Sat, 6 Feb 1999 03:13:47 -0500 (EST) (envelope-from bga@mug.org) Received: from localhost (bga@localhost) by bgalli.mug.org (8.8.7/UW7.0.1) with SMTP id DAA11962; Sat, 6 Feb 1999 03:10:41 -0500 (EST) Message-Id: <199902060810.DAA11962@bgalli.mug.org> X-Authentication-Warning: bgalli.mug.org: bga@localhost didn't use HELO protocol X-Mailer: exmh version 2.0.2 2/24/98 From: "Billy G. Allie" Reply-To: "Billy G. Allie" To: James Thompson Cc: Matthew Hagerty , pgsql-interfaces@postgreSQL.org Subject: Re: [INTERFACES] Using libpq without LD_LIBRARY_PATH In-Reply-To: Your message of "Fri, 05 Feb 1999 13:15:34 EST." Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_-1305378432P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Sat, 06 Feb 1999 03:10:41 -0500 Sender: bga@mug.org --==_Exmh_-1305378432P Content-Type: text/plain; charset=us-ascii James Thompson wrote: > 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. > I belive that on Solaris you can define LD_RUN_PATH to the library paths to search and they will be embedded into the executalble so that LD_LIBRARY_PATH will not be needed. I know this is the case with UnixWare. -- ____ | Billy G. Allie | Domain....: Bill.Allie@mug.org | /| | 7436 Hartwell | Compuserve: 76337,2061 |-/-|----- | Dearborn, MI 48126| MSN.......: B_G_Allie@email.msn.com |/ |LLIE | (313) 582-1540 | --==_Exmh_-1305378432P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use MessageID: Cnt2VH0wsl2SZQr/20s0tQvywOdLUlPB iQA/AwUBNrv4/6FebSRz8o+3EQJrEACfdvQ9ynge0pWAok31MxtblKu7kywAoIY+ /dJAMAIZ2pVPj5yIv53kHksr =9/HA -----END PGP SIGNATURE----- --==_Exmh_-1305378432P--