Created
May 8, 2015 07:06
-
-
Save aminamid/dd48d30c97eece5e0765 to your computer and use it in GitHub Desktop.
tmux static build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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