WebAssembly emsdk 安装失败

WebAssembly emsdk installation fails

我想安装EMSDK进行WASM编译但是EMSDK安装失败

我已经在 Ubuntu 16 上安装了 Cmake(3.14.0-rc1 也尝试过 3.5.2)。

当我 运行 ./emsdk install sdk-incoming-64bit binaryen-master-64bit 失败时:

CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_ASM_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "/home/emsdk/clang/fastcomp/build_incoming_64/CMakeFiles/CMakeOutput.log".
CMake invocation failed due to exception!
Working directory: /home/emsdk/clang/fastcomp/build_incoming_64
Command '['cmake', '-G', 'Unix Makefiles', '-DCMAKE_BUILD_TYPE=Release', '-DPYTHON_EXECUTABLE=/usr/bin/python', '-DLLVM_TARGETS_TO_BUILD=X86;JSBackend', '-DLLVM_INCLUDE_EXAMPLES=OFF', '-DCLANG_INCLUDE_EXAMPLES=OFF', '-DLLVM_INCLUDE_TESTS=OFF', '-DCLANG_INCLUDE_TESTS=OFF', '-DLLVM_ENABLE_ASSERTIONS=OFF', '/home/emsdk/clang/fastcomp/src']' returned non-zero exit status 1
Installation failed!

您可能缺少 make,因为 cmake 抱怨没有 make 程序。尝试 sudo apt-get install build-essential