Date: Wed, 28 Mar 2007 15:40:41 -0700 From: "Josh Carroll" <josh.carroll@gmail.com> To: "Charles Farinella" <cfarinella@appropriatesolutions.com> Cc: freebsd-questions@freebsd.org Subject: Re: LD_LIBRARY_PATH Message-ID: <8cb6106e0703281540y16bdaf79u8beccc32c0320e4a@mail.gmail.com> In-Reply-To: <460ADCE9.4090203@appropriatesolutions.com> References: <460ADCE9.4090203@appropriatesolutions.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8cb6106e0703281540y16bdaf79u8beccc32c0320e4a>