cygwin 编译 tmux

来源:互联网 发布:linux操作系统中文版 编辑:程序博客网 时间:2024/05/18 13:25

refs:

http://java.ociweb.com/mark/programming/tmuxInCygwin.html

http://sourceforge.net/mailarchive/message.php?msg_id=30850840

http://zengrong.net/post/1823.htm

cygwin从163镜像下载

os:win xp


1)编译 libevent 时,提示grep 不支持长文件,failed

暂停。

2)cygwin 安装中有问题,之前安装的版本和之后升级的版本不一致,之前只有setup文件

之后有区别setup_x86和setup_x86_642个版本,清理后重新安装,一切OK。


3)按照教程如上连接,或如下实作经验,安装必须文件。

  1. Install required Cygwin packages
    1. run Cygwin setup.exe
    2. install these packages that are not installed by default:
      automake, gcc, git,patch,libncurses-devel, ncurses and pkg-config
  2. Install libevent
    1. browse http://libevent.org
    2. download libevent-2.0.21-stable.tar.gz
    3. open a cygwin terminal
    4. cd to directory containing downloaded file
    5. tar zxf libevent-2.0.21-stable.tar.gz
    6. cd libevent-2.0.21-stable
    7. ./configure --prefix=/usr
    8. make && make install
  3. Install ncurses
    1. browse http://ftp.gnu.org/gnu/ncurses
    2. download ncurses-5.9.tar.gz
    3. open a cygwin terminal
    4. cd to directory containing downloaded file
    5. tar zxf ncurses-5.9.tar.gz
    6. cd ncurses-5.9
    7. ./configure --prefix=/usr
    8. make && make install
4)可以直接使用tmux的bin文件,或继续下载tmux源码,安装。

tmux for cygwin的bin文件

https://docs.google.com/file/d/0B7oqPEemRewhUDlkbWJhbDlEY0E


5)注意3.1中红色的package,此处没有使用网上的关于tmux在cygwin下要打patch的步骤,

(试过打patch,有些补丁会fail),估计该份code已经打过patch或更新过了。

  1. Install tmux
    1. open a cygwin terminal
    2. git clone http://git.code.sf.net/p/tmux/tmux-code tmux-tmux-code
    3. cd tmux-tmux-code
    4. ./autogen.sh (will see many warnings)
    5. CFLAGS="-I/usr/include/ncurses" ./configure --prefix=/usr
    6. make && make install
如果前面都操作正常,此步骤可以正常完成。

上张成果图。

------------------------------------------------------------------------------------------------------



原创粉丝点击