Skip to content

Instantly share code, notes, and snippets.

@violetyk
Created May 10, 2013 07:32
Show Gist options
  • Save violetyk/5552949 to your computer and use it in GitHub Desktop.
Save violetyk/5552949 to your computer and use it in GitHub Desktop.
cd /usr/local/src/
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar xf libevent-2.0.21-stable.tar.gz
./configure --prefix=/usr/local/libevent2
make
paco -D make install
cd /usr/local/src/
wget http://downloads.sourceforge.net/tmux/tmux-1.8.tar.gz
tar xf tmux-1.8.tar.gz
cd /usr/local/src/tmux1.8
# tmuxをconfigureするときにCFLAGSとLDFLAGSを指定する。
./configure --prefix=/usr/local/tmux CFLAGS="-I/usr/local/libevent2/include" LDFLAGS="-L/usr/local/libevent2/lib"
make
paco -D make install
#ldconfigしてlibevent2をロードできるようにする
echo /usr/local/libevent2/lib > /etc/ld.so.conf.d/libevent2.conf
ldconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment