Installing Emscripten on Ubuntu

Anderson Green picture Anderson Green · Feb 15, 2013 · Viewed 8.5k times · Source

I am trying to install Emscripten on Ubuntu, but the official installation guide for Emscripten doesn't offer any instructions for installing Emscripten on Linux. The only advice that the installation guide has to offer is:

If you are on Linux, things should be very simple for you and there is no need for any additional guide.

I have read the README.md file in the Emscripten repository as well, and it doesn't offer any instructions for Ubuntu either. What steps will I need to follow in order to set up Emscripten on Ubuntu?

Answer

dustin.b picture dustin.b · Feb 16, 2013

For Ubuntu 12.04 it is also very easy.

  1. go to http://llvm.org/releases/download.html and download LLVM 3.2 (Clang Binaries for Ubuntu-12.04/x86) LLVM is integrated
  2. extract it to a place you like eg. ~/opt/dev/llvm
  3. add this to your .profile PATH="$PATH:/home/[your_profile]/opt/dev/llvm/clang3.2/bin"
  4. make sure you have nodejs installed
  5. follow the instructions for the emscripten installation

thats all

if you get /usr/include/features.h:324:10: fatal error: 'bits/predefs.h' file not found simply install sudo apt-get install libc6-dev-i386