How to set LD_PATH elegant?

O. Hartmann ohartman at
Fri Mar 19 14:38:32 UTC 2010

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


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 

I appreciate any hint.


Oliver Hartmann

More information about the freebsd-questions mailing list