Skip to content

Instantly share code, notes, and snippets.

@rothgar
Forked from ekiara/how_to_install_tmux_on_centos
Last active June 28, 2025 05:43
Show Gist options
  • Save rothgar/cecfbd74597cc35a6018 to your computer and use it in GitHub Desktop.
Save rothgar/cecfbd74597cc35a6018 to your computer and use it in GitHub Desktop.

Revisions

  1. rothgar revised this gist Sep 3, 2014. 2 changed files with 25 additions and 37 deletions.
    37 changes: 0 additions & 37 deletions how_to_install_tmux_on_centos
    Original file line number Diff line number Diff line change
    @@ -1,37 +0,0 @@
    # Install tmux on Centos release 6.5
    # http://superuser.com/questions/738829/attempting-to-install-tmux-on-centos-6-4-or-centos-6-5-fails-with-error-evbuff
    #

    # READ THIS FIRST!!!
    # MAKE SURE YOU HAVE BUILD TOOLS/COMPILERS TO BUILD STUFF FROM SOURCES
    # yum groupinstall "Development Tools"


    # CD TO TEMPORARY DIRECTORY
    cd /tmp/sources

    # INSTALL NCURSES DEVEL
    yum -y install ncurses-devel

    # DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
    #### wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
    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
    make
    make install

    # DOWNLOAD SOURCES FOR TMUX AND MAKE AND INSTALL
    #### wget http://downloads.sourceforge.net/tmux/tmux-1.9a.tar.gz
    curl -OL http://downloads.sourceforge.net/tmux/tmux-1.9a.tar.gz
    tar -xvzf tmux-1.9a.tar.gz
    cd tmux-1.9a
    ./configure
    make
    make install

    # SWITCH BACK TO REGULAR USER AND EDIT YOUR BASHRC (OR ZSH CONFIG)
    echo export LD_LIBRARY_PATH=/usr/local/lib >> ~/.bash_profile
    . ~/.bash_profile
    #### source ~/.bash_profile
    25 changes: 25 additions & 0 deletions install-tmux
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    # 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
  2. @ekiara ekiara revised this gist Apr 18, 2014. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion how_to_install_tmux_on_centos
    Original file line number Diff line number Diff line change
    @@ -33,4 +33,5 @@ make install

    # SWITCH BACK TO REGULAR USER AND EDIT YOUR BASHRC (OR ZSH CONFIG)
    echo export LD_LIBRARY_PATH=/usr/local/lib >> ~/.bash_profile
    . ~/.bash_profile
    . ~/.bash_profile
    #### source ~/.bash_profile
  3. @ekiara ekiara revised this gist Apr 18, 2014. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions how_to_install_tmux_on_centos
    Original file line number Diff line number Diff line change
    @@ -23,7 +23,8 @@ make
    make install

    # DOWNLOAD SOURCES FOR TMUX AND MAKE AND INSTALL
    wget http://downloads.sourceforge.net/tmux/tmux-1.9a.tar.gz
    #### wget http://downloads.sourceforge.net/tmux/tmux-1.9a.tar.gz
    curl -OL http://downloads.sourceforge.net/tmux/tmux-1.9a.tar.gz
    tar -xvzf tmux-1.9a.tar.gz
    cd tmux-1.9a
    ./configure
    @@ -32,4 +33,4 @@ make install

    # SWITCH BACK TO REGULAR USER AND EDIT YOUR BASHRC (OR ZSH CONFIG)
    echo export LD_LIBRARY_PATH=/usr/local/lib >> ~/.bash_profile
    . ~/.bash_profile
    . ~/.bash_profile
  4. @ekiara ekiara created this gist Apr 18, 2014.
    35 changes: 35 additions & 0 deletions how_to_install_tmux_on_centos
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,35 @@
    # Install tmux on Centos release 6.5
    # http://superuser.com/questions/738829/attempting-to-install-tmux-on-centos-6-4-or-centos-6-5-fails-with-error-evbuff
    #

    # READ THIS FIRST!!!
    # MAKE SURE YOU HAVE BUILD TOOLS/COMPILERS TO BUILD STUFF FROM SOURCES
    # yum groupinstall "Development Tools"


    # CD TO TEMPORARY DIRECTORY
    cd /tmp/sources

    # INSTALL NCURSES DEVEL
    yum -y install ncurses-devel

    # DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
    #### wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
    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
    make
    make install

    # DOWNLOAD SOURCES FOR TMUX AND MAKE AND INSTALL
    wget http://downloads.sourceforge.net/tmux/tmux-1.9a.tar.gz
    tar -xvzf tmux-1.9a.tar.gz
    cd tmux-1.9a
    ./configure
    make
    make install

    # SWITCH BACK TO REGULAR USER AND EDIT YOUR BASHRC (OR ZSH CONFIG)
    echo export LD_LIBRARY_PATH=/usr/local/lib >> ~/.bash_profile
    . ~/.bash_profile