carton/install_ubuntu_deps.sh

22 lines
660 B
Bash
Raw Normal View History

#/bin/bash
set -ex
if [ -x "$(command -v sudo)" ]; then
sudo apt-get install zlib1g-dev libsqlite3-dev
else
apt-get install zlib1g-dev libsqlite3-dev
fi
BINARYEN_VERSION=105
curl -L -v -o binaryen.tar.gz https://github.com/WebAssembly/binaryen/releases/download/version_${BINARYEN_VERSION}/binaryen-version_${BINARYEN_VERSION}-x86_64-linux.tar.gz
tar xzvf binaryen.tar.gz
cp binaryen-version_${BINARYEN_VERSION}/bin/* /usr/local/bin
WABT_VERSION=1.0.27
curl -L -v -o wabt.tar.gz https://github.com/WebAssembly/wabt/releases/download/${WABT_VERSION}/wabt-${WABT_VERSION}-ubuntu.tar.gz
tar xzvf wabt.tar.gz
cp wabt-${WABT_VERSION}/bin/* /usr/local/bin