MacOSX: telling tmux where libevent is
Friday, 8th August, 2014
tmux depends on libevent but after installing libevent, tmux still won’t configure:
$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... etc/install-sh -c -d
...
checking for pkg-config... no
checking for LIBEVENT... no
checking for library containing event_init... no
configure: error: "libevent not found"
$
You have to tell it where lib event is installed. I did a vanilla configure && make && sudo make install
and it seems to have ended up in /usr/local/
, so:
$ DIR="/usr/local/"
$ ./configure CFLAGS="-I$DIR/include" LDFLAGS="-L$DIR/lib"
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... etc/install-sh -c -d
...
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
$
Done.
Thanks to stackexchange.