Skip to content

Instantly share code, notes, and snippets.

@arttuladhar
Last active May 6, 2023 03:04
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save arttuladhar/5863210 to your computer and use it in GitHub Desktop.
Save arttuladhar/5863210 to your computer and use it in GitHub Desktop.
Installing tmux on EC2
# Installing tmux on Amazon-EC2
# If you don't have libevent install use wget to install the libevent and install
wget https://github.com/downloads/libevent/libevent/libevent-2.0.18-stable.tar.gz
tar zxf libevent-2.0.18-stable.tar.gz
sudo ./configure & sudo make install
# If you don't have curses install use yum to install the curses
sudo yum install ncurses-devel
# Finally Downlload tmux and Install
wget http://downloads.sourceforge.net/tmux/tmux-1.8.tar.gz
tar zxf tmux-1.8
sudo ./configure & sudo make install
# If you see issue like the following, add symbolic link to 64bit user library to fix the issue.
# 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 /usr/lib64/libevent-2.0.so.5
@addison-grant
Copy link

line 16 should be tar zxf tmux-1.8.tar.gz?

I followed these steps, and I haven't figured out how to actually start tmux. I tried executing tmux and got 'command not found'. I tried rebooting my instance, and got the same results..

Copy link

ghost commented Aug 5, 2016

Why in the world wouldn't you just use sudo apt-get install tmux or yum install tmux, as appropriate?

@brianbruggeman
Copy link

brianbruggeman commented Feb 10, 2017

Why in the world wouldn't you just use sudo apt-get install tmux or yum install tmux, as appropriate?

For many distros, the default tmux is < 2.x. And there are a number of configuration changes between 1.x and 2.x. On a more personal note, I use iterm2 on a mac, mosh and then tmux. I need all three packages at the latest major version for smooth integration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment