20
17

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CentOS 6 系における tmux のインストール

Posted at

tmux のインストール.md

wget "http://sourceforge.net/projects/tmux/files/latest/download?source=files"
tar xvzf tmux-1.9a.tar.gz
cd tmux-1.9a
./configure
make
sudo make install

libevent が必要なため、インストールする

sudo yum install libevent libevent-devel

yum からインストールした libevent 使用してビルドするとエラーとなる。

control.c: In function ‘control_callback’:
control.c:62: warning: implicit declaration of function ‘evbuffer_readln’
control.c:62: warning: nested extern declaration of ‘evbuffer_readln’
control.c:62: error: ‘EVBUFFER_EOL_LF’ undeclared (first use in this function)
control.c:62: error: (Each undeclared identifier is reported only once
control.c:62: error: for each function it appears in.)
control.c:71: warning: implicit declaration of function ‘time’
control.c:71: warning: nested extern declaration of ‘time’
make: *** [control.o] Error 1

最新の libevent を取ってきてインストールする。
http://libevent.org

wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure
make
sudo make install

これで再度 tmux をインストールする

./configure
make
sudo make

起動してみるが、エラー

% tmux
tmux: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory

次のコマンドをたたくとなおる。

ln -s /usr/local/lib/libevent-2.0.so.5 /usr/lib64/libevent-2.0.so.5

以上

20
17
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
20
17

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?