~/projects/compile-to-web/C++ master
❯ vagrant ssh
Welcome to Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-98-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
Get cloud support with Ubuntu Advantage Cloud Guest:
http://www.ubuntu.com/business/services/cloud
0 packages can be updated.
0 updates are security updates.
Last login: Tue Nov 21 04:24:00 2017 from 10.0.2.2
ubuntu@ubuntu-xenial:~$ install
Reading package lists... Done
W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Operation not permitted)
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package nodejs
--2017-11-21 04:24:10-- https://s3.amazonaws.com/mozilla-games/emscripten/releases/emsdk-portable.tar.gz
Resolving s3.amazonaws.com (s3.amazonaws.com)... 52.216.80.163
Connecting to s3.amazonaws.com (s3.amazonaws.com)|52.216.80.163|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 36333 (35K) [application/x-tar]
Saving to: ‘emsdk-portable.tar.gz.6’
emsdk-portable.tar.gz.6 100%[======================================>] 35.48K 56.3KB/s in 0.6s
2017-11-21 04:24:11 (56.3 KB/s) - ‘emsdk-portable.tar.gz.6’ saved [36333/36333]
emsdk-portable/
emsdk-portable/emsdk
emsdk-portable/emcmdprompt.bat
emsdk-portable/emsdk.bat
emsdk-portable/emsdk_manifest.json
emsdk-portable/emsdk_env.bat
emsdk-portable/README.md
emsdk-portable/binaryen-tags.txt
emsdk-portable/emscripten-tags.txt
emsdk-portable/emsdk_env.sh
Downloading: /home/ubuntu/emsdk-portable/zips/emsdk_unix_update.tar.gz from https://s3.amazonaws.com/mozilla-games/emscripten/packages/emsdk_unix_update.tar.gz, 36333 Bytes
Unpacking '/home/ubuntu/emsdk-portable/zips/emsdk_unix_update.tar.gz' to '/home/ubuntu/emsdk-portable'
emsdk-portable/emsdk
emsdk-portable/emcmdprompt.bat
emsdk-portable/emsdk.bat
emsdk-portable/emsdk_manifest.json
emsdk-portable/emsdk_env.bat
emsdk-portable/README.md
emsdk-portable/binaryen-tags.txt
emsdk-portable/emscripten-tags.txt
emsdk-portable/emsdk_env.sh
Fetching all tags from Emscripten Github repository...
Done. 109 tagged releases available, latest is 1.37.22.
Fetching all tags from Binaryen Github repository...
Done. 36 tagged Binaryen releases available, latest is 1.37.22.
Fetching all precompiled Nightly versions..
Downloading: /home/ubuntu/emsdk-portable/llvm-nightlies-32bit.txt from https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/nightly/linux_32bit/index.txt
Downloading: /home/ubuntu/emsdk-portable/llvm-nightlies-64bit.txt from https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/nightly/linux_64bit/index.txt, 24146 Bytes
Downloading: /home/ubuntu/emsdk-portable/emscripten-nightlies.txt from https://s3.amazonaws.com/mozilla-games/emscripten/packages/emscripten/nightly/linux/index.txt, 25081 Bytes
Fetching all precompiled tagged releases..
Downloading: /home/ubuntu/emsdk-portable/llvm-tags-32bit.txt from https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/linux_32bit/index.txt
Downloading: /home/ubuntu/emsdk-portable/llvm-tags-64bit.txt from https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/linux_64bit/index.txt, 789 Bytes
Installing SDK 'sdk-incoming-64bit'..
Installing tool 'clang-incoming-64bit'..
Repository 'https://github.com/kripken/emscripten-fastcomp.git' already cloned to directory '/home/ubuntu/emsdk-portable/clang/fastcomp/src', skipping.
Fetching latest changes to the branch 'incoming' for '/home/ubuntu/emsdk-portable/clang/fastcomp/src'...
Already up-to-date.
Successfully updated and checked out branch 'incoming' on repository '/home/ubuntu/emsdk-portable/clang/fastcomp/src'
Current repository version: "Fri, 10 Nov 2017 22:56:20 +0200 4c26a4f8d498ef5b06ef8594d0e5d8d0cf0e8c60"
Repository 'https://github.com/kripken/emscripten-fastcomp-clang.git' already cloned to directory '/home/ubuntu/emsdk-portable/clang/fastcomp/src/tools/clang', skipping.
Fetching latest changes to the branch 'incoming' for '/home/ubuntu/emsdk-portable/clang/fastcomp/src/tools/clang'...
Already up-to-date.
Successfully updated and checked out branch 'incoming' on repository '/home/ubuntu/emsdk-portable/clang/fastcomp/src/tools/clang'
Current repository version: "Sat, 7 Oct 2017 22:07:42 -0700 3659f873b523e5fc89ffa16baab8901fbd084251"
Running CMake: ['cmake', '-G', 'Unix Makefiles', '-DCMAKE_BUILD_TYPE=RelWithDebInfo', '-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=ON', '/home/ubuntu/emsdk-portable/clang/fastcomp/src']
[Errno 2] No such file or directory
Could not run CMake, perhaps it has not been installed?
Installing this package requires CMake. Get it via your system package manager (e.g. sudo apt-get install cmake), or from http://www.cmake.org/
Installation failed!
Writing .emscripten configuration file to user home directory /home/ubuntu/
The SDK/tool 'clang-incoming-64bit' cannot be activated since it is not installed! Skipping this tool...
The SDK/tool 'node-4.1.1-64bit' cannot be activated since it is not installed! Skipping this tool...
The SDK/tool 'emscripten-incoming-64bit' cannot be activated since it is not installed! Skipping this tool...
The SDK/tool 'sdk-incoming-64bit' cannot be activated since it is not installed! Skipping this tool...
The Emscripten configuration file /home/ubuntu/.emscripten has been rewritten with the following contents:
import os
SPIDERMONKEY_ENGINE = ''
NODE_JS = 'node'
V8_ENGINE = ''
TEMP_DIR = '/tmp'
COMPILER_ENGINE = NODE_JS
JS_ENGINES = [NODE_JS]
To conveniently access the selected set of tools from the command line, consider adding the following directories to PATH, or call 'source emsdk-portable/emsdk_env.sh' to do this for you.
/home/ubuntu/emsdk-portable
ubuntu@ubuntu-xenial:~$ build
The program 'emcc' is currently not installed. You can install it by typing:
sudo apt install emscripten