Skip to content

Instantly share code, notes, and snippets.

@tgerring
Created February 1, 2016 17:41
Show Gist options
  • Save tgerring/1dd0c51adf3ab0387b3c to your computer and use it in GitHub Desktop.
Save tgerring/1dd0c51adf3ab0387b3c to your computer and use it in GitHub Desktop.
#!/bin/bash
# Set versions
ETHTAG="release"
# System information
UBUNTUVER=`lsb_release -r|awk '{print $2}'`
# Ensure the latest version of cmake
if [[ $UBUNTUVER == "14.04" ]];
then
sudo apt-add-repository ppa:george-edison55/cmake-3.x
fi
# Add llvm toolchain
wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
if [[ $UBUNTUVER == "14.04" ]];
then
sudo add-apt-repository "deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.7 main"
elif [[ $UBUNTUVER == "15.04" ]];
then
sudo add-apt-repository "deb http://llvm.org/apt/vivid/ llvm-toolchain-vivid-3.7 main"
elif [[ $UBUNTUVER == "15.10" ]];
then
sudo add-apt-repository "deb http://llvm.org/apt/wily/ llvm-toolchain-wily-3.7 main"
else
echo "No LLVM toolchain defined for Ubuntu $UBUNTUVER"
fi
# Install dependencies
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y install language-pack-en-base
sudo dpkg-reconfigure locales
sudo apt-get -y install software-properties-common
sudo apt-get -y install build-essential git cmake libboost-all-dev libgmp-dev libleveldb-dev libminiupnpc-dev libreadline-dev libncurses5-dev libcurl4-openssl-dev libcryptopp-dev libmicrohttpd-dev libjsoncpp-dev libargtable2-dev llvm-3.7-dev libedit-dev mesa-common-dev ocl-icd-libopencl1 opencl-headers libgoogle-perftools-dev qtbase5-dev qt5-default qtdeclarative5-dev libqt5webkit5-dev libqt5webengine5-dev ocl-icd-dev libv8-dev libz-dev
# Install JSON-RPC library
if [[ $UBUNTUVER == "14.04" || $UBUNTUVER == "15.04" ]];
then
sudo apt-get -y install libjson-rpc-cpp-dev
elif [[ $UBUNTUVER == "15.10" ]];
then
sudo apt-get -y install libjsonrpccpp-dev
else
echo "No JSONRPC defined for Ubuntu $UBUNTUVER"
fi
# QT stuff
# export CMAKE_PREFIX_PATH=/opt/Qt/5.5/gcc_64
# sudo apt-get -y install qml-module-qtquick-controls qml-module-qtwebengine
git clone --recursive https://github.com/ethereum/webthree-umbrella
cd webthree-umbrella
git checkout $ETHTAG
mkdir build
cd build
cmake ..
make -j 8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment