Skip to content

Latest commit

 

History

History
61 lines (45 loc) · 2 KB

InstallInfo.md

File metadata and controls

61 lines (45 loc) · 2 KB

Basic Install

You can locally install the SDK from the compiled Open Enclave tree by specifying the install-prefix to the cmake call before calling "make install". The SDK does not currently need to be installed system-wide, so you could choose to install it into your home directory. From the build subfolder in your source tree:

cmake -DCMAKE_INSTALL_PREFIX:PATH=~/openenclave-install ..
make install

This would install the resulting SDK layout under ~/openenclave-install instead of the default /opt/openenclave.

Optional Advanced Install

This section describes the contents of the SDK installation package, how to install the SDK globally and how to create a redistributable binary package (such as a .deb package)

Install the SDK tools for all users

If you want the SDK tools to be available to all users and headers/libs available from a system default location, you may opt to install system-wide. This naturally requires root privileges.

Currently, there is no support for a make uninstall action, so we recommend explicitly installing to a path outside the standard /usr/local/ location. From the build subfolder:

cmake -DCMAKE_INSTALL_PREFIX:PATH=/opt/openenclave ..
sudo make install

On Linux, you can also use the DESTDIR mechanism to further modify the target path at install time, rather than during cmake:

make install DESTDIR=foo

If you also specified a CMAKE_INSTALL_PREFIX, this would install the SDK to

/foo/opt/openenclave

Create a redistributable SDK package

To create a redistributable package (e.g. deb, rpm), use cpack. Specify the final installation prefix to cmake using the CMAKE_INSTALL_PREFIX variable as above. For example, to create a Debian package that will install the SDK to /opt/openenclave, run the following from your build subfolder:

cmake -DCMAKE_INSTALL_PREFIX:PATH=/opt/openenclave ..
cpack -G DEB