Skip to content

Instantly share code, notes, and snippets.

@xtremebeing
Forked from tomasbasham/install_tmux_osx_no_brew
Last active February 4, 2026 17:42
Show Gist options
  • Select an option

  • Save xtremebeing/a87148068bc7168d414b9c4ccf231fef to your computer and use it in GitHub Desktop.

Select an option

Save xtremebeing/a87148068bc7168d414b9c4ccf231fef to your computer and use it in GitHub Desktop.

Revisions

  1. xtremebeing revised this gist Feb 4, 2026. 1 changed file with 12 additions and 12 deletions.
    24 changes: 12 additions & 12 deletions install_tmux_osx_no_brew
    Original file line number Diff line number Diff line change
    @@ -3,30 +3,30 @@ mkdir ~/tmux-install
    cd ~/tmux-install

    # Get the files
    curl -OL https://www.openssl.org/source/openssl-1.0.2l.tar.gz
    curl -OL https://github.com/tmux/tmux/releases/download/2.3/tmux-2.3.tar.gz
    curl -OL https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz
    curl -OL https://github.com/openssl/openssl/releases/download/openssl-3.5.5/openssl-3.5.5.tar.gz
    curl -OL https://github.com/tmux/tmux/releases/download/3.6a/tmux-3.6a.tar.gz
    curl -OL https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz

    # Extract them
    tar xzf openssl-1.0.2l.tar.gz
    tar xzf tmux-2.3.tar.gz
    tar xzf libevent-2.0.22-stable.tar.gz
    tar xzf openssl-3.5.5.tar.gz
    tar xzf tmux-3.6a.tar.gz
    tar xzf libevent-2.1.12-stable.tar.gz

    # Compile openssl
    cd openssl-1.0.2l
    ./Configure darwin64-x86_64-cc --prefix=/usr/local --o
    cd openssl-3.5.5
    ./Configure darwin64-x86_64-cc --prefix=/usr/local
    make CFLAGS='-I/usr/local/ssl/include'
    make test
    sudo make install

    # Compile libevent
    cd ../libevent-2.0.22-stable
    cd ../libevent-2.1.12-stable
    ./configure
    make
    sudo make install

    # Compile tmux
    cd ../tmux-2.3
    LDFLAGS="-L/usr/local/lib" CPPFLAGS="-I/usr/local/include" LIBS="-lresolv" ./configure --prefix=/usr/local
    cd ../tmux-3.6a
    LDFLAGS="-L/usr/local/lib" CPPFLAGS="-I/usr/local/include" LIBS="-lresolv" ./configure --prefix=/usr/local --disable-utf8proc
    make
    sudo make install
    sudo make install
  2. @tomasbasham tomasbasham revised this gist Sep 19, 2017. 1 changed file with 14 additions and 8 deletions.
    22 changes: 14 additions & 8 deletions install_tmux_osx_no_brew
    Original file line number Diff line number Diff line change
    @@ -3,24 +3,30 @@ mkdir ~/tmux-install
    cd ~/tmux-install

    # Get the files
    curl -OL https://www.openssl.org/source/openssl-1.0.2l.tar.gz
    curl -OL https://github.com/tmux/tmux/releases/download/2.3/tmux-2.3.tar.gz
    curl -OL https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz

    # Extract them
    # Extract them
    tar xzf openssl-1.0.2l.tar.gz
    tar xzf tmux-2.3.tar.gz
    tar xzf libevent-2.0.22-stable.tar.gz

    # Compile openssl
    cd openssl-1.0.2l
    ./Configure darwin64-x86_64-cc --prefix=/usr/local --o
    make CFLAGS='-I/usr/local/ssl/include'
    make test
    sudo make install

    # Compile libevent
    cd libevent-2.0.22-stable
    ./configure --prefix=/opt
    cd ../libevent-2.0.22-stable
    ./configure
    make
    sudo make install

    # Compile tmux
    cd ../tmux-2.3
    LDFLAGS="-L/opt/lib" CPPFLAGS="-I/opt/include" LIBS="-lresolv" ./configure --prefix=/opt
    LDFLAGS="-L/usr/local/lib" CPPFLAGS="-I/usr/local/include" LIBS="-lresolv" ./configure --prefix=/usr/local
    make
    sudo make install

    # Link it
    ln -s /opt/bin/tmux /usr/local/bin/tmux
    sudo make install
  3. @Fi5t Fi5t revised this gist Dec 28, 2016. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions install_tmux_osx_no_brew
    Original file line number Diff line number Diff line change
    @@ -7,17 +7,17 @@ curl -OL https://github.com/tmux/tmux/releases/download/2.3/tmux-2.3.tar.gz
    curl -OL https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz

    # Extract them
    tar xzf tmux-1.5.tar.gz
    tar xzf libevent-2.0.16-stable.tar.gz
    tar xzf tmux-2.3.tar.gz
    tar xzf libevent-2.0.22-stable.tar.gz

    # Compile libevent
    cd libevent-2.0.16-stable
    cd libevent-2.0.22-stable
    ./configure --prefix=/opt
    make
    sudo make install

    # Compile tmux
    cd ../tmux-1.5
    cd ../tmux-2.3
    LDFLAGS="-L/opt/lib" CPPFLAGS="-I/opt/include" LIBS="-lresolv" ./configure --prefix=/opt
    make
    sudo make install
  4. @Fi5t Fi5t revised this gist Dec 28, 2016. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions install_tmux_osx_no_brew
    Original file line number Diff line number Diff line change
    @@ -3,8 +3,8 @@ mkdir ~/tmux-install
    cd ~/tmux-install

    # Get the files
    curl -OL http://downloads.sourceforge.net/tmux/tmux-1.5.tar.gz
    curl -OL http://downloads.sourceforge.net/project/levent/libevent/libevent-2.0/libevent-2.0.16-stable.tar.gz
    curl -OL https://github.com/tmux/tmux/releases/download/2.3/tmux-2.3.tar.gz
    curl -OL https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz

    # Extract them
    tar xzf tmux-1.5.tar.gz
    @@ -23,4 +23,4 @@ make
    sudo make install

    # Link it
    ln -s /opt/bin/tmux /usr/bin/tmux
    ln -s /opt/bin/tmux /usr/local/bin/tmux
  5. @shrayas shrayas revised this gist Jan 30, 2014. 1 changed file with 1 addition and 4 deletions.
    5 changes: 1 addition & 4 deletions install_tmux_osx_no_brew
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,3 @@
    ```
    # Create a directory
    mkdir ~/tmux-install
    cd ~/tmux-install
    @@ -24,6 +23,4 @@ make
    sudo make install

    # Link it
    ln -s /opt/bin/tmux /usr/bin/tmux

    ```
    ln -s /opt/bin/tmux /usr/bin/tmux
  6. @shrayas shrayas created this gist Jan 30, 2014.
    29 changes: 29 additions & 0 deletions install_tmux_osx_no_brew
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    ```
    # Create a directory
    mkdir ~/tmux-install
    cd ~/tmux-install

    # Get the files
    curl -OL http://downloads.sourceforge.net/tmux/tmux-1.5.tar.gz
    curl -OL http://downloads.sourceforge.net/project/levent/libevent/libevent-2.0/libevent-2.0.16-stable.tar.gz

    # Extract them
    tar xzf tmux-1.5.tar.gz
    tar xzf libevent-2.0.16-stable.tar.gz

    # Compile libevent
    cd libevent-2.0.16-stable
    ./configure --prefix=/opt
    make
    sudo make install

    # Compile tmux
    cd ../tmux-1.5
    LDFLAGS="-L/opt/lib" CPPFLAGS="-I/opt/include" LIBS="-lresolv" ./configure --prefix=/opt
    make
    sudo make install

    # Link it
    ln -s /opt/bin/tmux /usr/bin/tmux

    ```