Date: Fri, 19 Mar 2010 17:06:31 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: "O. Hartmann" <ohartman@zedat.fu-berlin.de> Cc: freebsd-questions@freebsd.org Subject: Re: How to set LD_PATH elegant? Message-ID: <20100319220631.GC12330@dan.emsphone.com> In-Reply-To: <4BA38CD4.3020300@zedat.fu-berlin.de> References: <4BA38CD4.3020300@zedat.fu-berlin.de>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Mar 19), O. Hartmann said: > 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. Create a file in /usr/local/libdata/ldconfig/ containing the directories you want added to the ld search path. Call it something descriptive so you know what it's for. /etc/rc.d/ldconfig will process those files and run ldconfig on them on bootup. If you've installed zsh, mysql, or firefox from ports, you may already have a couple files in there. -- Dan Nelson dnelson@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100319220631.GC12330>