The first use of CentOS, a lot of not used to record.
First install Epel, otherwise the default package is very poor: (see: http://www.rackspace.com/knowledge_center/article/ Install-epel-and-additional-repositories-on-centos-and-red-hat)
sudo yum install epel-release
When you're finished, you'll get an error with Yum:
[Email Protected]:~]yum Search Tmux
Loaded Plugins:fastestmirror, Refresh-packagekit, security
Loading mirror speeds from cached hostfile
Error:cannot retrieve Metalink for Repository:epel. Verify its path and try again
The solution is: (see: Https://community.hpcloud.com/article/centos-63-instance-giving-cannot-retrieve-metalink-repository-epel-error)
sudo sed -i "s/mirrorlist=https/mirrorlist=http/" /etc/yum.repos.d/epel.repo
yum check-update
好了,可以开始装别的东西了。。
OK, immediately again encountered the error, installed Tmux Well, resolved as follows:
1, the system comes with libevent too low, to manually install 2.0: see http://superuser.com/questions/738829/ Attempting-to-install-tmux-on-centos-6-4-or-centos-6-5-fails-with-error-evbuff
wget http://iweb.dl.sourceforge.net/project/levent/libevent/libevent-2.0/libevent-2.0.22-stable.tar.gztar -xvzf libevent-2.0.22-stable.tar.gzcd libevent-2.0.22-stable./configuremakemake install
2, link error, to manually change makefile plus parameters: see: http://superuser.com/questions/829860/ Undefined-reference-to-b64-ntop-tmux-compilation-error-on-centos
Error:
.../tty.c:1067:undefined reference to ' __b64_ntop '
FIX: Open Makefiler find "LIBS = -lutil -lcurses -levent -lrt】后面加-lresov
3、运行出错,要手动对依赖的so做软链:详见同上
tmux: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory
解决:
sudo ln -s /usr/local/lib/libevent-2.0.so.5 /lib64/
真是蛋疼。。。
centos-6.4 Yum EPEL