Created
March 14, 2014 18:28
-
-
Save dstokes/9553771 to your computer and use it in GitHub Desktop.
This file contains 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 | |
apt-get update | |
apt-get -y upgrade | |
apt-get -y install make build-essential elfutils libelf-dev flex bison libunwind8 libunwind8-dev libaudit-dev libdw-dev binutils-dev libnuma-dev libslang2-dev asciidoc llvm-3.4 clang-3.4 subversion libc6-dev-i386 tmux git | |
echo 'export CC=clang' > .bash_aliases | |
echo 'export CXX=clang++' >> .bash_aliases | |
echo 'export GYP_DEFINES="clang=1"' >> .bash_aliases | |
echo 'export D8_PATH=~/sources/node/deps/v8/out/native' >> .bash_aliases | |
. .bash_aliases | |
curl 'https://gist.github.com/trevnorris/8347403/raw/7457500c418c55db08d2f2dc2f1686d74c8df323/tmux.conf' > ~/.tmux.conf | |
mkdir sources | |
cd sources | |
wget https://github.com/joyent/node/archive/master.tar.gz | |
tar xvf master.tar.gz | |
rm master.tar.gz | |
mv node-master node | |
cd node | |
#export GYP_DEFINES="v8_enable_disassembler=1 v8_object_print=1" | |
./configure | |
make | |
make install | |
cd deps/v8/ | |
make dependencies | |
make native | |
cd ~/sources/node/tools/wrk | |
make | |
cd ~/sources | |
wget https://github.com/ktap/ktap/archive/master.tar.gz | |
tar xvf master.tar.gz | |
rm master.tar.gz | |
mv ktap-master ktap | |
cd ktap | |
make | |
make install | |
#make load | |
cd ~/sources | |
wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.13.6.tar.gz | |
tar xvf linux-3.13.6.tar.gz | |
rm linux-3.13.6.tar.gz | |
cd linux-3.13.6/tools/perf/ | |
make -f Makefile.perf install prefix=/usr | |
#cd | |
#mkdir examples | |
#cd examples | |
#git clone https://github.com/visionmedia/express.git | |
#cd express | |
#npm install | |
#cd | |
#ln -s sources/node/deps/v8/tools/linux-tick-processor | |
#ln -s sources/node/tools/wrk/wrk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment