From 531938d70b21f3445a3e069303ccee8858deb0f0 Mon Sep 17 00:00:00 2001 From: Jason Du <78238426+jasondu7297@users.noreply.github.com> Date: Fri, 29 Dec 2023 11:57:49 -0500 Subject: [PATCH] OpenEnclave install documentation (#108) --- docs/INSTALL.md | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/docs/INSTALL.md b/docs/INSTALL.md index dc0a099..d046892 100644 --- a/docs/INSTALL.md +++ b/docs/INSTALL.md @@ -4,7 +4,32 @@ ### 1. OpenEnclave SDK -Follow the installation instructions found in the [OpenEnclave documentation](https://github.com/openenclave/openenclave/blob/master/docs/GettingStartedDocs/install_oe_sdk-Ubuntu_20.04.md). If only using in simulation mode, you can skip step 2. +Follow the steps listed below to install OpenEnclave SDK. More detailed installation instructions can be found in the [OpenEnclave documentation](https://github.com/openenclave/openenclave/blob/master/docs/GettingStartedDocs/install_oe_sdk-Ubuntu_20.04.md). + +First, configure the Intel and Microsoft APT Repositories: +```bash +echo 'deb [arch=amd64] https://download.01.org/intel-sgx/sgx_repo/ubuntu focal main' | sudo tee /etc/apt/sources.list.d/intel-sgx.list +wget -qO - https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key | sudo apt-key add - + +echo "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-11 main" | sudo tee /etc/apt/sources.list.d/llvm-toolchain-focal-11.list +wget -qO - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - + +echo "deb [arch=amd64] https://packages.microsoft.com/ubuntu/20.04/prod focal main" | sudo tee /etc/apt/sources.list.d/msprod.list +wget -qO - https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - + +sudo apt update +``` + +Then, install the Intel and Open Enclave packages and dependencies: +```bash +sudo apt -y install clang-11 libssl-dev gdb libsgx-enclave-common libsgx-quote-ex libprotobuf17 libsgx-dcap-ql libsgx-dcap-ql-dev az-dcap-client open-enclave +``` + +Finally, to make use of the Open Enclave CMake package, please install CMake: +```bash +sudo apt-get install python3-pip +sudo pip3 install cmake +``` ### 2. Apache Thrift