library search path

Eitan Adler lists at
Mon May 28 18:57:28 UTC 2012

On 28 May 2012 08:54, Polytropon <freebsd at> wrote:
> On Mon, 28 May 2012 23:11:26 +0900, fake fake wrote:
>> To install tmux under $HOME/bin, I have installed libevent library
>> under $HOME/lib (I do not have root privilege).
>> Then set the variable LD_LIBRARY_PATH to $HOME/lib in .cshrc.
>> But "./configure --prefix=$HOME" in src/tmux returns "configure:
>> error: "libevent not found"".
>> What am I doing wrong?
> Note that you need to _add_ $HOME/lib to $LD_LIBRARY_PATH
> (and check that it's expanded correctly).
> Do you have access to the ports tree (reading)? Then you
> could simply redefine $WRKDIRPREFIX to where you can
> compile, and $PREFIX to where you can install to. See
> "man 7 ports" for details.

You can also try -DINSTALL_AS_USER though it may not work as advertised.

Eitan Adler

More information about the freebsd-questions mailing list