Skip to content

Instantly share code, notes, and snippets.

@drola
Last active April 24, 2017 21:03
Show Gist options
  • Save drola/cfab87b542140da550fd3c6e4f2b87b5 to your computer and use it in GitHub Desktop.
Save drola/cfab87b542140da550fd3c6e4f2b87b5 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Install git cmake build-essential python2.7 nodejs default-jre
sudo apt-get install git cmake build-essential python2.7 nodejs default-jre
wget https://s3.amazonaws.com/mozilla-games/emscripten/releases/emsdk-portable.tar.gz
tar -zxvf emsdk-portable.tar.gz
cd ./emsdk-portable
./emsdk update
./emsdk install sdk-incoming-64bit #If you are getting "collect2: error: ld returned 1 exit status" error, try running ./emsdk install -j1 sdk-incoming-64bit
./emsdk activate sdk-incoming-64bit
cd emcscripten/incoming
./embuilder.py build binaryen
cd ../..
source ./emsdk_env.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment