ざる魂

真似ぶ魂、学ぶの本質。知られざる我が魂

cygwinにtmuxを導入

はじめに

Cygwinでは、長らくtmuxが使えなかったのですが、 最近tmuxが正式にCygwinをサポートしたようです。

コンパイルしてインストールするため、依存するライブラリが必要です。

2014/06/23 追記

apt-cyg は、最新版を利用すれば問題ありません。

apt-cygを事前にイストールしておけば簡単ですが、 最新のCygwinでは、apt-cygがすんなり動きません。

インストール方法

apt-cygで事前に必要なパッケージをインストールしておく。

$ apt-cyg install ncurses
$ apt-cyg install libncurses-devel
$ apt-cyg install libevent-devel
$ apt-cyg install pkg-config autoconf automake
$ apt-cyg install make gcc-core

あとは参考サイトにあるとおりでオッケー。

$ git clone http://git.code.sf.net/p/tmux/tmux-code tmux-tmux-code
$ cd tmux-tmux-code/
$ ./autogen.sh
$ CFLAGS="-I/usr/include/ncurses" ./configure --prefix=/usr
$ make && make install

参考

翌日、なぜか起動しなくなった。

後日、起動時に下記のエラーが発生

$ tmux
failed to connect to server: No error

.bashrc に下記を追記することで治った。

alias tmux='rm -rf /tmp/tmux* && tmux'