Skip to content

Instantly share code, notes, and snippets.

@pingyen
Created June 9, 2015 05:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pingyen/51469d9965427dbac8bd to your computer and use it in GitHub Desktop.
Save pingyen/51469d9965427dbac8bd to your computer and use it in GitHub Desktop.
Emscripten Installation Guide
$ sudo apt-get install python-software-properties
$ sudo apt-add-repository ppa:chris-lea/node.js
$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
$ sudo apt-get update
$ sudo apt-get install nodejs default-jre
$ sudo apt-get install gcc-4.8 g++-4.8
$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20
$ sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20
$ wget http://www.cmake.org/files/v3.2/cmake-3.2.3-Linux-x86_64.tar.gz
$ tar zxvf cmake-3.2.3-Linux-x86_64.tar.gz
$ sudo ln -sf /path/to/cmake-3.2.3-Linux-x86_64/bin/cmake /usr/bin/cmake
$ wget https://s3.amazonaws.com/mozilla-games/emscripten/releases/emsdk-portable.tar.gz
$ tar zxvf emsdk-portable.tar.gz
$ cd /path/to/emsdk-portable
$ ./emsdk update
$ ./emsdk install latest
$ ./emsdk activate latest
$ source ./emsdk_env.sh
$ emcc -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment