Skip to content

How to install Intel SGX SDK on Ubuntu

Sebastian edited this page Sep 3, 2020 · 1 revision

For developing purposes we need to install the SDK (Software Development Kit). The Intel SGX SDK is required to create custom software solutions that are executed by the Intel SGX driver. The SDK includes the following components: APIs, Libraries, Documentation, Sample source code and Tools. Just like getting the driver binary file, we can obtain the SDK binary file on the following page:

Screenshot 2020-02-23 at 00 33 03

❗ Note: In the meantime Linux SGX version 2.9 has been released. It is possible that the manual also applies to version 2.9. However, the manual has been tested with version 2.8.


Please pay attention to use the SGX release for Ubuntu 18.04. Subsequently you will be redirected to a mirror containing two binary files.

Screenshot 2020-02-23 at 00 34 22

We have to download the SDK file sgx_linux_x64_sdk_<version>.bin and navigate to the destinated location in the filesystem. Before we are able to run the file, we have to use the chmod command to make it executable.

  • cd ~/Downloads
  • chmod +x sgx_linux_x64_sdk_<version>.bin

Now we are able to install the SDK by running the following command with sudo permissions.

  • sudo ./sgx_linux_x64_sdk_<version>.bin

A wizard will help us to install the SDK. Pay attention to install the SDK to /opt/intel/. Basically the SDK can be installed in any folder, but the installation in /opt/intel will save us configuration steps later on.

  • Do you want to install in current directory? n
  • Please input the directory which you want to install in: /opt/intel

Now we just have to remember to add the SDK environment using source command.

  • source /opt/intel/sgxsdk/environment

The installation is now completely finished. Basically we can now start developing an SGX application.