Forked from shady-robot/How to install tmux on centos 7
Created
December 20, 2016 22:25
-
-
Save hansdg1/21a5f0dbfd897e076c515b1fd661320d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tmux is a "terminal multiplexer", it enables a number of terminals to be accessed and controlled from a single terminal. | |
If you use Debian/Ubuntu, you can just run apt-get install tmux, and voila. | |
Since the title was about centos 7, then do the following step to install tmux. | |
(1). tmux has a library dependency on libevent which, of course, isn’t installed by default. | |
$ wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz | |
$ tar xzvf libevent-2.0.21-stable.tar.gz | |
$ cd libevent-2.0.21-stable | |
$ ./configure && make | |
$ sudo make install | |
(2). To get and build the latest from version control: | |
$ git clone https://github.com/tmux/tmux.git | |
$ cd tmux | |
$ sh autogen.sh | |
$ ./configure && make | |
Tips: | |
(1). During the second step, if you encounter with "libevent not found” error" | |
You should install the libevent development package, by running the following command. | |
$ yum install libevent-devel | |
(2). If you run with "curses not found" error | |
To compile the code you need the devel packages, run the following comamnd | |
$ yum install ncurses-devel | |
$ yum install glibc-static | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment