Skip to content

Instantly share code, notes, and snippets.

@libin
Forked from solar/libevent-2.0.20-stable.sh
Last active May 17, 2016 20:34
Show Gist options
  • Save libin/b058b220a47ff81f168d919e485e1724 to your computer and use it in GitHub Desktop.
Save libin/b058b220a47ff81f168d919e485e1724 to your computer and use it in GitHub Desktop.

Revisions

  1. libin renamed this gist May 17, 2016. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. libin revised this gist May 17, 2016. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions libevent-2.0.20-stable.sh
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,12 @@
    #!/bin/sh

    curl -sL 'https://github.com/downloads/libevent/libevent/libevent-2.0.20-stable.tar.gz' | tar zx
    curl -sL 'https://github.com/downloads/libevent/libevent/libevent-2.0.22-stable.tar.gz' | tar zx
    cd libevent-2.0.20-stable/
    ./configure --prefix=/usr/local/libevent/2.0.20-stable
    ./configure --prefix=/usr/local/libevent/2.0.22-stable
    make
    sudo make install
    sudo alternatives --install /usr/local/lib64/libevent libevent /usr/local/libevent/2.0.20-stable/lib 20018 \
    --slave /usr/local/include/libevent libevent-include /usr/local/libevent/2.0.20-stable/include \
    --slave /usr/local/bin/event_rpcgen.py event_rpcgen /usr/local/libevent/2.0.20-stable/bin/event_rpcgen.py
    sudo alternatives --install /usr/local/lib64/libevent libevent /usr/local/libevent/2.0.22-stable/lib 20018 \
    --slave /usr/local/include/libevent libevent-include /usr/local/libevent/2.0.22-stable/include \
    --slave /usr/local/bin/event_rpcgen.py event_rpcgen /usr/local/libevent/2.0.22-stable/bin/event_rpcgen.py
    sudo su -c 'echo "/usr/local/lib64/libevent" > /etc/ld.so.conf.d/libevent.conf'
    sudo ldconfig
  3. @solar solar renamed this gist Oct 12, 2012. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions libevent-2.0.18-stable.sh → libevent-2.0.20-stable.sh
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,12 @@
    #!/bin/sh

    curl -sL 'https://github.com/downloads/libevent/libevent/libevent-2.0.18-stable.tar.gz' | tar zx
    cd libevent-2.0.18-stable/
    ./configure --prefix=/usr/local/libevent/2.0.18-stable
    curl -sL 'https://github.com/downloads/libevent/libevent/libevent-2.0.20-stable.tar.gz' | tar zx
    cd libevent-2.0.20-stable/
    ./configure --prefix=/usr/local/libevent/2.0.20-stable
    make
    sudo make install
    sudo alternatives --install /usr/local/lib64/libevent libevent /usr/local/libevent/2.0.18-stable/lib 20018 \
    --slave /usr/local/include/libevent libevent-include /usr/local/libevent/2.0.18-stable/include \
    --slave /usr/local/bin/event_rpcgen.py event_rpcgen /usr/local/libevent/2.0.18-stable/bin/event_rpcgen.py
    sudo alternatives --install /usr/local/lib64/libevent libevent /usr/local/libevent/2.0.20-stable/lib 20018 \
    --slave /usr/local/include/libevent libevent-include /usr/local/libevent/2.0.20-stable/include \
    --slave /usr/local/bin/event_rpcgen.py event_rpcgen /usr/local/libevent/2.0.20-stable/bin/event_rpcgen.py
    sudo su -c 'echo "/usr/local/lib64/libevent" > /etc/ld.so.conf.d/libevent.conf'
    sudo ldconfig
  4. @solar solar revised this gist May 2, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion libevent-2.0.18-stable.sh
    Original file line number Diff line number Diff line change
    @@ -8,5 +8,5 @@ sudo make install
    sudo alternatives --install /usr/local/lib64/libevent libevent /usr/local/libevent/2.0.18-stable/lib 20018 \
    --slave /usr/local/include/libevent libevent-include /usr/local/libevent/2.0.18-stable/include \
    --slave /usr/local/bin/event_rpcgen.py event_rpcgen /usr/local/libevent/2.0.18-stable/bin/event_rpcgen.py
    sudo echo '/usr/local/lib64/libevent' > /etc/ld.so.conf.d/libevent.conf
    sudo su -c 'echo "/usr/local/lib64/libevent" > /etc/ld.so.conf.d/libevent.conf'
    sudo ldconfig
  5. @solar solar revised this gist May 2, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion libevent-2.0.18-stable.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    #!/bin/sh

    curl -sL https://github.com/downloads/libevent/libevent/libevent-2.0.18-stable.tar.gz | tar zx
    curl -sL 'https://github.com/downloads/libevent/libevent/libevent-2.0.18-stable.tar.gz' | tar zx
    cd libevent-2.0.18-stable/
    ./configure --prefix=/usr/local/libevent/2.0.18-stable
    make
  6. @solar solar revised this gist May 2, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion tmux-1.6.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    #!/bin/sh

    curl -sL "http://downloads.sourceforge.net/project/tmux/tmux/tmux-1.6/tmux-1.6.tar.gz?r=http%3A%2F%2Ftmux.sourceforge.net%2F&use_mirror=jaist" | tar zx
    curl -sL 'http://downloads.sourceforge.net/project/tmux/tmux/tmux-1.6/tmux-1.6.tar.gz' | tar zx
    cd tmux-1.6/
    CFLAGS="-I/usr/local/include/libevent" LDFLAGS="-L/usr/local/lib64/libevent" ./configure --prefix=/usr/local/tmux/1.6
    make
  7. @solar solar revised this gist May 2, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion tmux-1.6.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    #!/bin/sh

    curl -sL "http://downloads.sourceforge.net/project/tmux/tmux/tmux-1.6/tmux-1.6.tar.gz?r=http%3A%2F%2Ftmux.sourceforge.net%2F&ts=1335928688&use_mirror=jaist" | tar zx
    curl -sL "http://downloads.sourceforge.net/project/tmux/tmux/tmux-1.6/tmux-1.6.tar.gz?r=http%3A%2F%2Ftmux.sourceforge.net%2F&use_mirror=jaist" | tar zx
    cd tmux-1.6/
    CFLAGS="-I/usr/local/include/libevent" LDFLAGS="-L/usr/local/lib64/libevent" ./configure --prefix=/usr/local/tmux/1.6
    make
  8. @solar solar revised this gist May 2, 2012. 2 changed files with 4 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions libevent-2.0.18-stable.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    #!/bin/sh

    curl -sL https://github.com/downloads/libevent/libevent/libevent-2.0.18-stable.tar.gz | tar zx
    cd libevent-2.0.18-stable/
    ./configure --prefix=/usr/local/libevent/2.0.18-stable
    2 changes: 2 additions & 0 deletions tmux-1.6.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    #!/bin/sh

    curl -sL "http://downloads.sourceforge.net/project/tmux/tmux/tmux-1.6/tmux-1.6.tar.gz?r=http%3A%2F%2Ftmux.sourceforge.net%2F&ts=1335928688&use_mirror=jaist" | tar zx
    cd tmux-1.6/
    CFLAGS="-I/usr/local/include/libevent" LDFLAGS="-L/usr/local/lib64/libevent" ./configure --prefix=/usr/local/tmux/1.6
  9. @solar solar created this gist May 2, 2012.
    10 changes: 10 additions & 0 deletions libevent-2.0.18-stable.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    curl -sL https://github.com/downloads/libevent/libevent/libevent-2.0.18-stable.tar.gz | tar zx
    cd libevent-2.0.18-stable/
    ./configure --prefix=/usr/local/libevent/2.0.18-stable
    make
    sudo make install
    sudo alternatives --install /usr/local/lib64/libevent libevent /usr/local/libevent/2.0.18-stable/lib 20018 \
    --slave /usr/local/include/libevent libevent-include /usr/local/libevent/2.0.18-stable/include \
    --slave /usr/local/bin/event_rpcgen.py event_rpcgen /usr/local/libevent/2.0.18-stable/bin/event_rpcgen.py
    sudo echo '/usr/local/lib64/libevent' > /etc/ld.so.conf.d/libevent.conf
    sudo ldconfig
    6 changes: 6 additions & 0 deletions tmux-1.6.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    curl -sL "http://downloads.sourceforge.net/project/tmux/tmux/tmux-1.6/tmux-1.6.tar.gz?r=http%3A%2F%2Ftmux.sourceforge.net%2F&ts=1335928688&use_mirror=jaist" | tar zx
    cd tmux-1.6/
    CFLAGS="-I/usr/local/include/libevent" LDFLAGS="-L/usr/local/lib64/libevent" ./configure --prefix=/usr/local/tmux/1.6
    make
    sudo make install
    sudo alternatives --install /usr/local/bin/tmux tmux /usr/local/tmux/1.6/bin/tmux 10600