From owner-freebsd-questions Wed Feb 17 9:18: 1 1999 Delivered-To: freebsd-questions@freebsd.org Received: from liffey.co-operation-ireland.ie (d1-ppp-132.connect.ie [194.106.128.132]) by hub.freebsd.org (Postfix) with ESMTP id 6D3141113B for ; Wed, 17 Feb 1999 09:17:46 -0800 (PST) (envelope-from relyod@co-operation-ireland.ie) Received: from it1 (it1 [199.107.2.129]) by liffey.co-operation-ireland.ie (8.8.8/8.8.8) with SMTP id RAA01487 for ; Wed, 17 Feb 1999 17:16:14 GMT (envelope-from relyod@co-operation-ireland.ie) Message-Id: <3.0.5.32.19990217171733.007fd500@199.107.2.1> X-Sender: relyod@199.107.2.1 X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32) Date: Wed, 17 Feb 1999 17:17:33 +0000 To: freebsd-questions@freebsd.org From: Michael Doyle Subject: ld.so problem Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I seem to have a problem with linking to shared libraries I need help ! Here is what I have done I installed PostgreSQL - and the executables were complaining about not findinf their libraries. The documentation said to add a line "/usr/local/pgsql/lib" to the file /etc/ld.so.conf and to run ldconfig. Installing PostgreSQL involved adding two kernel options - so I also installed a new custom kernel. This file (/etc/ld.so.conf) did not previously exist, so I created it, with the given line. Running ldconfig did not seem to work (the "psql" executable still could not find its library file) So... reading more into the PostgreSQL documentation, I find instructions to the effect that I can override the library search path with the LD_LIBRARY_PATH environment variable. Setting this variable to point to "/usr/local/pgsql/lib" worked. Now, howver, I can't run an X terminal "xterm" reports it can't find a library. ("libXaw.so.6.1") This never happened before - the only way I can make it work is to add "/usr/X11R6/lib" to the LD_LIBRARY_PATH environment variable. Even adding /usr/X11R6/lib to the "/etc/ld.so.conf" file does not help Neither does renaming and re-creating the hints file by running ldconfig. What has gone wrong, and how do I get my system to work the way it used to ? (Listing ALL the library paths in each users .login is a kludge..., and won't work for suid programs.) Another problem I noticed at the same time was that MySQL will no longer work Possibly because of library path issues, or possibly I "broke" something else as well. Any help appreciated, Please mail me directly, I'm not subscribed to the -questions list cause I can't keep up with the volume of mail each day. Mike <>< ============================================================ ><> Michael Doyle email: relyod@co-operation-ireland.ie Network Administrator personal email: relyod@indigo.ie Co-operation Ireland http://www.co-operation-ireland.ie/ Phone: +353-1-661 0588 Fax: +353-1-661 8456 *** NOTE: our domain name HAS changed. If you are still using the old "co-operation-north.ie" domain for web site or email addresses, please update it. ********************************************************************* To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message