Skip to content

Instantly share code, notes, and snippets.

@aminamid
Created May 8, 2015 07:06
Show Gist options
  • Save aminamid/dd48d30c97eece5e0765 to your computer and use it in GitHub Desktop.
Save aminamid/dd48d30c97eece5e0765 to your computer and use it in GitHub Desktop.
tmux static build
# yum install glibc-static
# yum install ncurses-static
LOCALHOME=${HOME}/usr/opt
mkdir -p ${LOCALHOME}
cd ${LOCALHOME}
# Get tmux
wget http://downloads.sourceforge.net/tmux/tmux-1.9a.tar.gz
tar zxf tmux-1.9a.tar.gz
cd ${LOCALHOME}/tmux-1.9a
# Get&build libevent
wget --no-check-certificate https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar zxf libevent-2.0.21-stable.tar.gz
cd ${LOCALHOME}/tmux-1.9a/libevent-2.0.21-stable
mkdir build
./configure --prefix=${LOCALHOME}/tmux-1.9a/libevent-2.0.21-stable/build
make
make install
# Build tmux
cd ..
mkdir build
PKG_CONFIG_PATH=${LOCALHOME}/tmux-1.9a/libevent-2.0.21-stable/build/lib/pkgconfig ./configure --enable-static --prefix=${LOCALHOME}
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment