From owner-freebsd-questions@FreeBSD.ORG Fri Jul 7 12:21:57 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D3D816A4E2 for ; Fri, 7 Jul 2006 12:21:57 +0000 (UTC) (envelope-from nospam@mgedv.net) Received: from mail.mgedv.net (mail.mgedv.net [81.223.168.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD05F43D72 for ; Fri, 7 Jul 2006 12:21:56 +0000 (GMT) (envelope-from nospam@mgedv.net) Received: from metis (sslint.my.loop [1.1.1.1]) by mail.my.loop (mgedv) with ESMTP id 4FC50457AD; Fri, 7 Jul 2006 14:21:55 +0200 (CEST) From: "no@spam@mgedv.net" To: "'Giorgos Keramidas'" Date: Fri, 7 Jul 2006 14:22:02 +0200 Message-ID: <000001c6a1bf$f3cb4bd0$01010101@avalon.lan> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <20060707120310.GC88706@gothmog.pc> Thread-Index: AcahvjwNZY/l5/7YRf+RpiI0PnF72wAAX9jw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Cc: freebsd-questions@freebsd.org Subject: RE: shared library loader configuration X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jul 2006 12:21:57 -0000 > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of > Giorgos Keramidas > Sent: Friday, July 07, 2006 2:03 PM > To: nospam@mgedv.net > Cc: freebsd-questions@freebsd.org > Subject: Re: shared library loader configuration > > On 2006-07-07 13:22, "no@spam@mgedv.net" wrote: > > > > hi, > > > > can someone give me please a SIMPLE and CLEAR answer, what i exactly > > have to do to achieve the following: > > > > i have (for example) installed a new compiled version of > libz.a/.so in > > /usr/local. > > > > i want program (during runtime AND during compilation) to > compile and > > run against the NEW and non-system libs. > > In short, just don't. > > The system programs have been tested, developed and debugged with the > *SYSTEM* version of the libraries. Blindly replacing these libraries > with others is something you should do only with extreme care. > > > what has to be set/changed, to have this setting as soon as the OS > > starts? > > LD_LIBRARY_PATH is probably what you mean here. > > > i tried running ldconfig, i was playing around with some ld-so.conf > > files, everything failed. the compilation does not even find the new > > libraries, and if i use "ldd" to check what path the lib would use > > it's always /lib or /usr/lib instead of /usr/local/lib. > > All the compilers that I have to use for every day work and for my own > stuff have options that can hardcode a 'runtime library path' > in the ELF > binary. > > What did you try to compile? > > What do you mean by writing ``the compilation does not even > find the new > libraries''? > > > please don't tell me things about RTFM or weblinks > > This is also a good way of learning new stuff though :) > > > i just need ~3 simple lines of what the hell to do that i get a > > persisting setting for compilations and runtimes > > How do you know it is ``3 simple lines''? > dunno, if it's a misunderstanding, but my only question "how to tell the system where to load libraries and in which order to prefer paths" seems to be still open. anyway, thx for the reply ;-) ps: i already RdTFM ;-)