From owner-freebsd-questions@FreeBSD.ORG Fri Apr 11 16:51:51 2003 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 B823E37B404 for ; Fri, 11 Apr 2003 16:51:51 -0700 (PDT) Received: from thalia.otenet.gr (thalia.otenet.gr [195.170.0.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8222643F85 for ; Fri, 11 Apr 2003 16:51:42 -0700 (PDT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-a229.otenet.gr [212.205.215.229]) by thalia.otenet.gr (8.12.9/8.12.9) with ESMTP id h3BNpAYA008585; Sat, 12 Apr 2003 02:51:27 +0300 (EEST) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.9/8.12.9) with ESMTP id h3BNpBM1011851; Sat, 12 Apr 2003 02:51:11 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.9/8.12.9/Submit) id h3BNpBbe011850; Sat, 12 Apr 2003 02:51:11 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Sat, 12 Apr 2003 02:51:11 +0300 From: Giorgos Keramidas To: "Timothy R. Simmons" Message-ID: <20030411235111.GA11650@gothmog.gr> References: <3EBFA476.8070905@comcast.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3EBFA476.8070905@comcast.net> cc: freebsd-questions@FreeBSD.org Subject: Re: Greetings! 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: Fri, 11 Apr 2003 23:51:52 -0000 On 2003-05-12 09:41, "Timothy R. Simmons" wrote: > I have a (hopefully) simple question, so please forgive my ignorance. > But heck, we all have to start somewhere. Okay, I've been using > FreeBSD for about a month now, and am tinkeringly famliar with C and > C++ coding, which is to say, I usetacould. Anyway, I've been > installing some programs designed primarily for linux systems, which > seem to use an ld.so.conf file in /etc to point to libraries, which > updates, I'm guessing, LD_LIBRARY_PATH environment variable. Neither > of these seem to exist in the BSD world, so here's my question. ldconfig works a bit differently in FreeBSD. Read the ldconfig manpage for the authoritative documentation. > How do I update the path where libraries and header files are searched > for? BSD seems to like to put things in /usr/lib, /usr/bin, > etc.. where as the programs I'm installing are placing these files, by > default, in /usr/local/lib, /usr/local/bin, etc., which isn't IN my > path for lib and bin files. I can see where it sets the path on boot, > but can't manage to figure out how to change it. Any help would be > appreciated. If this isn't what you're referring to: $ grep /local/lib /etc/defaults/rc.conf /etc/defaults/rc.conf:ldconfig_paths="/usr/lib/compat /usr/X11R6/lib /usr/local/lib" /etc/defaults/rc.conf:ldconfig_paths_aout="/usr/lib/compat/aout /usr/X11R6/lib/aout /usr/local/lib/aout" then I don't know what you're asking. Perhaps, if you provided more details about the programs and/or libraris you're installing and what you have done so far in order to use them? - Giorgos