From owner-freebsd-questions@FreeBSD.ORG Thu Apr 28 13:50:22 2005 Return-Path: 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 D6DE616A4CE for ; Thu, 28 Apr 2005 13:50:22 +0000 (GMT) Received: from ns01.connect.az (ns02.connect.az [62.212.236.162]) by mx1.FreeBSD.org (Postfix) with SMTP id 59CA343D1F for ; Thu, 28 Apr 2005 13:50:21 +0000 (GMT) (envelope-from tofik@oxygen.az) Received: (qmail 14501 invoked from network); 28 Apr 2005 16:51:22 -0000 Received: from unknown (HELO ?192.168.0.10?) (192.168.0.10) by office.connect.az with SMTP; 28 Apr 2005 16:51:22 -0000 Message-ID: <4270EA3E.3080701@oxygen.az> Date: Thu, 28 Apr 2005 18:50:54 +0500 From: Tofik Suleymanov User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050401) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Corey Brune References: <1b86eafe408a7e1e2a48fc2c26c30fb0@shire.net> <5627053705042204527599f209@mail.gmail.com> In-Reply-To: <5627053705042204527599f209@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: List Free Bsd cc: "Chad Leigh -- Shire. Net LLC" Subject: Re: how to make "shared library cache" (ldconfig cache) changes permanent? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2005 13:50:23 -0000 Corey Brune wrote: >You can add the shared lib directories to /etc/rc.conf. > > >Corey > >On 4/22/05, Chad Leigh -- Shire. Net LLC wrote: > > >>I have a new directory I want to be always used to look for shared >>libraries. >> >>I do a >> >>% ldconfig -m /usr/public/lib >> >>and all is well. However, on reboot, the changes go away and I have to >>do it again. Does not work so well if things that start up at boot >>time rely on libraries in the new directory. >> >>How can I execute this so it is a permanent addition? >> >>Thanks >>Chad >> >> assuming that you need /usr/local/fake to be your shared library path,this is what you need to add in /etc/rc.conf: (/usr/lib/compat ,/usr/X11R6/lib and /usr/local/lib are default system-wide search pathes for shared libraries) ldconfig_paths="/usr/lib/compat /usr/X11R6/lib /usr/local/lib /usr/local/fake"