From owner-freebsd-questions@FreeBSD.ORG Fri Mar 19 14:44:04 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E0B81106564A for ; Fri, 19 Mar 2010 14:44:04 +0000 (UTC) (envelope-from aimass@yabarana.com) Received: from mail-qy0-f190.google.com (mail-qy0-f190.google.com [209.85.221.190]) by mx1.freebsd.org (Postfix) with ESMTP id A59A68FC0C for ; Fri, 19 Mar 2010 14:44:04 +0000 (UTC) Received: by qyk28 with SMTP id 28so1997743qyk.14 for ; Fri, 19 Mar 2010 07:44:03 -0700 (PDT) MIME-Version: 1.0 Sender: aimass@yabarana.com Received: by 10.229.222.76 with SMTP id if12mr345848qcb.17.1269009843538; Fri, 19 Mar 2010 07:44:03 -0700 (PDT) In-Reply-To: <4BA38CD4.3020300@zedat.fu-berlin.de> References: <4BA38CD4.3020300@zedat.fu-berlin.de> Date: Fri, 19 Mar 2010 10:44:03 -0400 X-Google-Sender-Auth: 0c1b8e12624ce7bc Message-ID: From: Alejandro Imass To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: How to set LD_PATH elegant? 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, 19 Mar 2010 14:44:05 -0000 On Fri, Mar 19, 2010 at 10:40 AM, O. Hartmann wrote: > I'm a little bit new to setting library paths, so sorry for the noise. > > I install some packages and libraries apart the FreeBSD package/ports system > and need > to setup the search path for shared libraries the proper way. > > At this very moment I 'hardcode' this additional search path by setting > > ldconfig_paths= > > in /etc/rc.conf, > > > but since this is a 'system related' location I'm looking for a proper and > clean method setting this search path > via environment variable and/or some /usr/local/etc/rc.conf.add stuff or > similar. > If I understand your question correctly perhaps the LD_LIBRARY_PATH is what you are looking for. It will set the search order for the libraries, not the executables which is what PATH variable is for. > I appreciate any hint. > > Regards, > > Oliver Hartmann > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >