Skip to content

How to install Intel SGX SDK on Ubuntu

Mats edited this page Mar 7, 2020 · 10 revisions

For developing purposes we need to install the SDK (Software Development Kit). Just like picking up the driver binary file, we can get the SDK binary file from the following page.

Screenshot 2020-02-23 at 00 33 03

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

Screenshot 2020-02-23 at 00 34 22

Download the driver file sgx_linux_x64_sdk_<version>.bin and navigate to the destinated location in the filesystem. Before we can execute the file, we need to use the chmod command to make it executable.

  • chmod +x sgx_linux_x64_sdk_<version>.bin

we are able to install the SDK by running

  • sudo ./<SDK-File>.bin

A wizard will help you to install the SDK. Pay attention to install the SDK to /opt/intel/.In principle the SDK can be installed in any folder, but the installation in /opt/intel saves us later configuration steps.

  • 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 environment using source command.

  • source /opt/intel/sgxsdk/environment
Clone this wiki locally