diff options
author | Michal Strehovský <MichalStrehovsky@users.noreply.github.com> | 2017-05-05 05:09:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-05 05:09:56 +0300 |
commit | 757032b90f49e999fa9ee831e27122ca8c2a1f47 (patch) | |
tree | f06f68b5358b6bba1d7e4dc36b3342b3600c3f83 /Documentation | |
parent | 049a8f4ec7d85d4e59fd3858a2f1081270e9adf2 (diff) |
Add instructions for building CoreRT on Bash on Ubuntu on Windows (#3526)
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/prerequisites-for-building.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Documentation/prerequisites-for-building.md b/Documentation/prerequisites-for-building.md index 59a818c99..2fa1ceae9 100644 --- a/Documentation/prerequisites-for-building.md +++ b/Documentation/prerequisites-for-building.md @@ -29,3 +29,20 @@ sudo apt-get install cmake clang-3.9 libicu52 libunwind8 2. Install [CMake](https://cmake.org/download/). Launch `/Applications/CMake.app/Contents/MacOS/CMake` GUI. Goto "OSX App Menu -> Tools -> Install For Command Line Use" and follow the steps. CMake < 3.6 has [a bug](https://cmake.org/Bug/view.php?id=16064) that can make `--install` fail. Do `sudo mkdir /usr/local/bin` to work around. 3. Install OpenSSL. Build tools have a dependency on OpenSSL. You can use [Homebrew](http://brew.sh/) to install it: with Homebrew installed, run `brew install openssl` followed by `ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/`, followed by `ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/`. 4. Install ICU (International Components for Unicode). It can be obtained via [Homebrew](http://brew.sh/): run `brew install icu4c` followed by `brew link --force icu4c` + +# Bash on Ubuntu on Windows (Windows 10 Creators Update or later) + +Make sure you run with Ubuntu 16.04 Xenial userland (this is the default after Windows 10 Creators Update, but if you enabled the "Bash on Ubuntu on Windows" feature before the Creators Update, you need to [upgrade manually](https://blogs.msdn.microsoft.com/commandline/2017/04/11/windows-10-creators-update-whats-new-in-bashwsl-windows-console/)). Running `lsb_release -a` will give you the version. + +Install basic dependency packages: + +First add a new package source to be able to install clang-3.9: +```sh +echo "deb http://llvm.org/apt/xenial/ llvm-toolchain-xenial-3.9 main" | sudo tee /etc/apt/sources.list.d/llvm.list +wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add - +sudo apt-get update +``` + +```sh +sudo apt-get install cmake clang-3.9 libunwind8 +``` |