This page introduces how to install Emscripten, a compiler for WebAssembly. I used the Ubuntu as the develop environment.
In my Ubuntu, the Emscripten need to be compiled every time computer was restarted.
//cd to emsdk firstly
//compile Emscripten
cd emsdk
source ./emsdk_env.sh --build=Release