From owner-freebsd-questions@FreeBSD.ORG Thu Mar 29 14:45:02 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7D05916A405 for ; Thu, 29 Mar 2007 14:45:02 +0000 (UTC) (envelope-from cfarinella@appropriatesolutions.com) Received: from mail.appropriatesolutions.com (static-63-131-36-2.man.onecommunications.net [63.131.36.2]) by mx1.freebsd.org (Postfix) with ESMTP id 499E613C4BB for ; Thu, 29 Mar 2007 14:44:57 +0000 (UTC) (envelope-from cfarinella@appropriatesolutions.com) Received: from localhost (localhost.appropriatesolutions.com [127.0.0.1]) by mail.appropriatesolutions.com (Postfix) with ESMTP id E19D93C681; Thu, 29 Mar 2007 09:44:55 -0500 (EST) X-Virus-Scanned: amavisd-new at appropriatesolutions.com Received: from mail.appropriatesolutions.com ([127.0.0.1]) by localhost (mail1.appropriatesolutions.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fQGwE0pCCNVF; Thu, 29 Mar 2007 09:44:47 -0500 (EST) Received: from [192.168.24.123] (whiterabbit.appropriatesolutions.com [63.131.36.31]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: cfarinella) by mail.appropriatesolutions.com (Postfix) with ESMTP id 72E1C3C678; Thu, 29 Mar 2007 09:44:47 -0500 (EST) Message-ID: <460BD0DF.1010902@appropriatesolutions.com> Date: Thu, 29 Mar 2007 10:44:47 -0400 From: Charles Farinella User-Agent: Thunderbird 1.5.0.10 (X11/20070306) MIME-Version: 1.0 To: josh.carroll@psualum.com References: <460ADCE9.4090203@appropriatesolutions.com> <8cb6106e0703281540y16bdaf79u8beccc32c0320e4a@mail.gmail.com> In-Reply-To: <8cb6106e0703281540y16bdaf79u8beccc32c0320e4a@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: LD_LIBRARY_PATH 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: Thu, 29 Mar 2007 14:45:02 -0000 Josh Carroll wrote: >> New to FreeBSD. How can I update my LD_LIBRARY_PATH? > There are a couple of ways. First, you can look at > /etc/defaults/rc.conf for the default value of ldconfig_paths. On this > 6.2-RELEASE system, it's set to: > > ldconfig_paths="/usr/lib/compat /usr/X11R6/lib /usr/local/lib > /usr/local/lib/compat/pkg" > > So you can edit /etc/rc.conf and append to that list. E.g. if you > wanted to add /usr/local/my_libs, you'd put the following in > /etc/rc.conf: > > ldconfig_paths="/usr/lib/compat /usr/X11R6/lib /usr/local/lib > /usr/local/lib/compat/pkg /usr/local/my_libs" > > Another possibility, based on a cursory read of /etc/rc.d/ldconfig, > would be to add the path to /etc/ld-elf.so.conf (which probably > doesn't exist by default). > > Either way, once you've added your path, you'd run: > > /etc/rc.d/ldconfig start > > Which should add the libraries from the added path. Thanks so much for your reply, I was not aware of /etc/defaults or it's contents. Now I know. :-) I was able to correct my issue yesterday with 'ldconfig -m /path/to/libs' which adds the path to /var/run/ld-elf.so.hints. thanks again. --charlie -- ------------------------------------------------------------------------ Charles Farinella Appropriate Solutions, Inc. (www.AppropriateSolutions.com) cfarinella@AppropriateSolutions.com voice: 603.924.6079 fax: 603.924.8668