From owner-freebsd-questions@FreeBSD.ORG Wed Mar 28 22:40:42 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 8F15C16A46F for ; Wed, 28 Mar 2007 22:40:42 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.251]) by mx1.freebsd.org (Postfix) with ESMTP id 4C89A13C44C for ; Wed, 28 Mar 2007 22:40:42 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so1044ana for ; Wed, 28 Mar 2007 15:40:41 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jjhJ2R8Qbxg0BDVkE3D+I1k3tazGFMSNjd06qpFCsGRre7okPRwEcD9rDhphagfn52mYFVY4D9FKwvZAwVR3/6ge+IGXMtN2cWcDA6gqzRI4OGPmgRVZKqCRL/2G/JgbzvSw448e2jMiY9M1zXJgI7ZNcYo4uwah6trlgI5k34s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sr+s7Lt7OS+idaxqtC1t+tcx/1MNVLGXWUsx8mo7i8hDKo+HRwBLUA4PE6yrW2/W5XT03uEVYv2JwqDkk458YMuyfaqyG3MR8dk5jk4gR5VkxCQ/xKwpEwFs9mtBHjZgAZgVvW2460sP39tJqKPJv0D7/gBHv/6FwZJ/92Jt+gU= Received: by 10.100.94.3 with SMTP id r3mr660791anb.1175121641645; Wed, 28 Mar 2007 15:40:41 -0700 (PDT) Received: by 10.100.231.18 with HTTP; Wed, 28 Mar 2007 15:40:41 -0700 (PDT) Message-ID: <8cb6106e0703281540y16bdaf79u8beccc32c0320e4a@mail.gmail.com> Date: Wed, 28 Mar 2007 15:40:41 -0700 From: "Josh Carroll" To: "Charles Farinella" In-Reply-To: <460ADCE9.4090203@appropriatesolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <460ADCE9.4090203@appropriatesolutions.com> Cc: freebsd-questions@freebsd.org Subject: Re: LD_LIBRARY_PATH X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: josh.carroll@psualum.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Mar 2007 22:40:42 -0000 > New to FreeBSD. How can I update my LD_LIBRARY_PATH? > > In Linux I modify my /etc/ld.so.conf file and run ldconfig. Is there an > equivalent here? A pointer to docs would be fine. 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. Regards, Josh