静态编译tmux

Posted on Posted in tmux
Tips: 本文创建于2016年6月12日,已超过 2 年,内容或图片可能已经失效!

环境

Ubuntu 16.04 LTS \n \l  

  • libevent-2.0.22-stable.tar.gz
  • tmux-2.2.tar.gz

步骤

-> root@0ae970e27ba3 ~ ☺ # apt-get install gcc make cmake libncurses-dev pkg-config  
-> root@0ae970e27ba3 ~/pkg/libevent-2.0.22-stable ☺ # ./configure --prefix=/root/local/libevent  
-> root@0ae970e27ba3 ~/pkg/libevent-2.0.22-stable ☺ # make && make install  
-> root@0ae970e27ba3 ~/pkg/tmux-2.2 ☺ # ./configure --prefix=/root/local/tmux --enable-static CFLAGS=-I/root/local/libevent/include LDFLAGS=-L/root/local/libevent/lib  
-> root@0ae970e27ba3 ~/pkg/tmux-2.2 ☺ # make && make install  

打包

使用 /root/local/tmux/bin/tmux 文件,就可以乾坤大挪移了

» 转载请注明来源:若我若鱼 » 静态编译tmux

Leave a Reply

Your email address will not be published. Required fields are marked *

four × 5 =