Centos installation of tmux

Source: Internet
Author: User

Original article: https://gist.github.com/rothgar/cecfbd74597cc35a6018

# Install tmux on centos release 6.5

# Install deps
Yum install GCC kernel-devel make ncurses-devel

# Download sources for libevent and make and install
Curl-ol https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
Tar-xvzf libevent-2.0.21-stable.tar.gz
CD libevent-2.0.21-stable
./Configure -- prefix =/usr/local
Make
Sudo make install

# Download sources for tmux and make and install
Curl-ol http://downloads.sourceforge.net/tmux/tmux-1.9a.tar.gz
Tar-xvzf tmux-1.9a.tar.gz
CD tmux-1.9a
Ldflags = "-l/usr/local/lib-wl,-rpath =/usr/local/lib"./configure -- prefix =/usr/local
Make
Sudo make install

# Pkill tmux
# Close your terminal window (flushes cached tmux executable)
# Open new shell and check tmux version
Tmux-V

====================================

If an error occurs during installation:


Use of tmux-Window Manager

 

Tmux introduction:

Tmux is a substitute for screen implemented by BSD. Compared with screen, tmux is more advanced: it supports screen splitting and has rich command line parameters, allowing it to flexibly and dynamically perform various la S and operations. It can start up with a command (powerful configuration), with the terminal on the left and VIM on the right, and GDB on the bottom-in short, it is a flexible IDE, you are still configuring.

The effect is as follows:

(1) An error is reported when tmux executes make:

Control. C: In function 'control _ callback ':

Control. C: 103: Warning: Implicit declaration of function 'evbuffer _ readln'

Control. C: 103: Error: 'evbuffer _ eol_lf 'undeclared (first use in this function)

Control. C: 103: Error: (each undeclared identifier is reported only once

Control. C: 103: Error: for each function it appears in .)

Make: *** [control. O] Error 1

The reason is the lack of libevent. If the above steps are not installed or the version is too low, you can reinstall them.

Centos installation of tmux

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.