Last active
May 4, 2018 09:52
-
-
Save xsbchen/f5b186be81152bd8a33cc67afc3a0949 to your computer and use it in GitHub Desktop.
install node benchmark requirements on Ubuntu
This file contains hidden or 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
| #!/bin/bash | |
| # install required packages | |
| sudo apt update | |
| sudo apt install -y git g++ make binutils autoconf automake autotools-dev libtool pkg-config \ | |
| zlib1g-dev libcunit1-dev libssl-dev libxml2-dev libev-dev libevent-dev libjansson-dev \ | |
| libc-ares-dev libjemalloc-dev libsystemd-dev \ | |
| cython python3-dev python-setuptools | |
| # install wrk | |
| git clone https://github.com/wg/wrk.git /tmp/wrk | |
| cd /tmp/wrk | |
| make | |
| sudo cp wrk /usr/local/bin/wrk | |
| sudo rm -rf /tmp/wrk | |
| # install nghttp2 | |
| git clone https://github.com/nghttp2/nghttp2.git /tmp/nghttp2 | |
| cd /tmp/nghttp2 | |
| git submodule update --init | |
| autoreconf -i && automake && autoconf | |
| ./configure --enable-app | |
| make | |
| sudo make install | |
| sudo ldconfig | |
| sudo rm -rf /tmp/nghttp2 | |
| # install R | |
| sudo apt install -y r-base | |
| sudo Rscript -e 'install.packages("ggplot2", repo="http://cloud.r-project.org/")' | |
| sudo Rscript -e 'install.packages("plyr", repo="http://cloud.r-project.org/")' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment