Skip to content

Commit 467ba70

Browse files
committed
Add Ubuntu 16.04 description in README
Signed-off-by: Zhang Lili Z <[email protected]>
1 parent 68f44d6 commit 467ba70

File tree

1 file changed

+33
-14
lines changed

1 file changed

+33
-14
lines changed

README.md

Lines changed: 33 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ Build the Intel(R) SGX SDK and Intel(R) SGX PSW Package
3434
-------------------------------------------------------
3535
### Prerequisites:
3636
- Ensure that you have one of the following required operating systems:
37+
* Ubuntu\* 16.04 LTS Desktop 64bits
38+
* Ubuntu\* 16.04 LTS Server 64bits
3739
* Ubuntu\* 18.04 LTS Desktop 64bits
3840
* Ubuntu\* 18.04 LTS Server 64bits
3941
* Red Hat Enterprise Linux Server release 7.4 64bits
@@ -42,6 +44,10 @@ Build the Intel(R) SGX SDK and Intel(R) SGX PSW Package
4244
* SUSE Linux Enterprise Server 12 64bits
4345

4446
- Use the following command(s) to install the required tools to build the Intel(R) SGX SDK:
47+
* On Ubuntu 16.04
48+
```
49+
$ sudo apt-get install build-essential ocaml automake autoconf libtool wget python libssl-dev
50+
```
4551
* On Ubuntu 18.04:
4652
```
4753
$ sudo apt-get install build-essential ocaml ocamlbuild automake autoconf libtool wget python libssl-dev
@@ -62,7 +68,7 @@ Build the Intel(R) SGX SDK and Intel(R) SGX PSW Package
6268
$ sudo zypper install ocaml ocaml-ocamlbuild automake autoconf libtool wget python libopenssl-devel
6369
```
6470
- Use the following command to install additional required tools to build the Intel(R) SGX PSW:
65-
* On Ubuntu 18.04:
71+
* On Ubuntu 16.04 and Ubuntu 18.04:
6672
```
6773
$ sudo apt-get install libssl-dev libcurl4-openssl-dev protobuf-compiler libprotobuf-dev debhelper
6874
```
@@ -86,7 +92,7 @@ The following steps describe how to build the Intel(R) SGX SDK and PSW. You can
8692
```
8793
$ make
8894
```
89-
You can find the tools and libraries generated in the `build/linux` directory.
95+
You can find the tools and libraries generated in the `build/linux` directory.
9096
**Note**: You can also go to the `sdk` folder and use the `make` command to build the Intel(R) SGX SDK component only. However, building the PSW component is dependent on the result of building the Intel(R) SGX SDK.
9197

9298
- This repository supports to build the Intel(R) SGX SDK based on either precompiled optimized IPP/string/math libraries or open sourced version of SGXSSL/string/math libraries.
@@ -127,13 +133,16 @@ $ make sdk_install_pkg DEBUG=1
127133

128134
### Build the Intel(R) SGX PSW Installer
129135
To build the Intel(R) SGX PSW installer, enter the following command:
130-
- On Ubuntu 18.04:
136+
- On Ubuntu 16.04 and Ubuntu 18.04:
131137
```
132138
$ make deb_sgx_enclave_common_pkg
133139
```
134-
You can find the generated Intel(R) SGX PSW installer ``libsgx-enclave-common_${version}-${revision}_${arch}.deb`` located under `linux/installer/deb/libsgx-enclave-common`, where `${version}` refers to the version number and the `${arch}` refers to the platform.
135-
136-
**Note**: The above command builds the Intel(R) SGX PSW with default configuration firstly and then generates the target PSW Installer. To build the Intel(R) SGX PSW Installer with debug information kept in the tools and libraries, enter the following command:
140+
You can find the generated Intel(R) SGX PSW installer ``libsgx-enclave-common_${version}-${revision}_amd64.deb`` located under `linux/installer/deb/libsgx-enclave-common`, where `${version}` refers to the version number and the `${revision}` refers to the revision number of the package.
141+
**Note**: On Ubuntu 18.04, besides the Intel(R) SGX PSW installer, the above command generates another debug symbol package named ``libsgx-enclave-common-dbgsym_${version}-${revision}_amd64.ddeb`` for debug purpose. On Ubuntu 16.04, if you want to keep debug symbols in the Intel(R) SGX PSW installer, before building the Intel(R) SGX PSW, you need to export an environment variable to ensure the debug symbols not stripped:
142+
```
143+
$ export DEB_BUILD_OPTIONS="nostrip"
144+
```
145+
**Note**: The above command builds the Intel(R) SGX PSW with default configuration firstly and then generates the target PSW Installer. To build the Intel(R) SGX PSW Installer without optimization and with full debug information kept in the tools and libraries, enter the following command:
137146
```
138147
$ make deb_sgx_enclave_common_pkg DEBUG=1
139148
```
@@ -149,19 +158,27 @@ To build the Intel(R) SGX PSW installer, enter the following command:
149158
```
150159
$ make psw_install_pkg DEBUG=1
151160
```
161+
To build the Intel(R) SGX PSW development installer, enter the following command:
162+
- On Ubuntu 16.04 and Ubuntu 18.04:
163+
```
164+
$ make deb_sgx_enclave_common_dev_pkg
165+
```
166+
You can find the generated Intel(R) SGX PSW development installer ``libsgx-enclave-common-dev_${version}-${revision}_${arch}.deb`` located under `linux/installer/deb/libsgx-enclave-common-dev`.
152167

153168
Install the Intel(R) SGX SDK
154169
------------------------
155170
### Prerequisites
156171
- Ensure that you have one of the following operating systems:
172+
* Ubuntu\* 16.04 LTS Desktop 64bits
173+
* Ubuntu\* 16.04 LTS Server 64bits
157174
* Ubuntu\* 18.04 LTS Desktop 64bits
158175
* Ubuntu\* 18.04 LTS Server 64bits
159176
* Red Hat Enterprise Linux Server release 7.4 64bits
160177
* CentOS 7.5 64bits
161178
* Fedora 27 Server 64bits
162179
* SUSE Linux Enterprise Server 12 64bits
163180
- Use the following command to install the required tool to use Intel(R) SGX SDK:
164-
* On Ubuntu 18.04:
181+
* On Ubuntu 16.04 and Ubuntu 18.04:
165182
```
166183
$ sudo apt-get install build-essential python
167184
```
@@ -217,6 +234,8 @@ Install the Intel(R) SGX PSW
217234
----------------------------
218235
### Prerequisites
219236
- Ensure that you have one of the following operating systems:
237+
* Ubuntu\* 16.04 LTS Desktop 64bits
238+
* Ubuntu\* 16.04 LTS Server 64bits
220239
* Ubuntu\* 18.04 LTS Desktop 64bits
221240
* Ubuntu\* 18.04 LTS Server 64bits
222241
* Red Hat Enterprise Linux Server release 7.4 64bits
@@ -228,7 +247,7 @@ Install the Intel(R) SGX PSW
228247
- Configure the system with the **Intel SGX hardware enabled** option and install Intel(R) SGX driver in advance.
229248
See the earlier topic, *Build and Install the Intel(R) SGX Driver*, for information on how to install the Intel(R) SGX driver.
230249
- Install the library using the following command:
231-
* On Ubuntu 18.04:
250+
* On Ubuntu 16.04 and Ubuntu 18.04:
232251
```
233252
$ sudo apt-get install libssl-dev libcurl4-openssl-dev libprotobuf-dev
234253
```
@@ -243,7 +262,7 @@ Install the Intel(R) SGX PSW
243262
- `iclsClient` and `JHI` are optional prerequisite components and are needed if you need to use Intel(R) SGX Platform Service. To install these components:
244263
Ensure `mei_me` driver is enabled and `/dev/mei0` exists.
245264
Download [iclsClient](https://software.intel.com/en-us/sgx-sdk/download) and install it using the following commands:
246-
* On Ubuntu 18.04:
265+
* On Ubuntu 16.04 and Ubuntu 18.04:
247266
```
248267
$ sudo apt-get install alien
249268
$ sudo alien --scripts iclsClient-1.45.449.12-1.x86_64.rpm
@@ -258,7 +277,7 @@ Install the Intel(R) SGX PSW
258277
$ sudo zypper install iclsClient-1.45.449.12-1.x86_64.rpm
259278
```
260279
Download source code from [dynamic-application-loader-host-interface](https://github.com/01org/dynamic-application-loader-host-interface) project. In the source code folder, build and install the `JHI` service using the following commands:
261-
* On Ubuntu 18.04:
280+
* On Ubuntu 16.04 and Ubuntu 18.04:
262281
```
263282
$ sudo apt-get install uuid-dev libxml2-dev cmake pkg-config
264283
$ cmake .;make;sudo make install;sudo systemctl enable jhi
@@ -276,15 +295,15 @@ Install the Intel(R) SGX PSW
276295

277296
### Install the Intel(R) SGX PSW
278297
To install the Intel(R) SGX PSW, invoke the installer with root privilege:
279-
- On Ubuntu 18.04:
298+
- On Ubuntu 16.04 and Ubuntu 18.04:
280299
```
281300
$ cd linux/installer/deb/libsgx-enclave-common
282-
$ sudo dpkg -i ./libsgx-enclave-common_${version}-${revision}_${arch}.deb
301+
$ sudo dpkg -i ./libsgx-enclave-common_${version}-${revision}_amd64.deb
283302
```
284-
To debug with sgx-gdb, enter the following command:
303+
**NOTE**: To debug with sgx-gdb on Ubuntu 16.04, you need to ensure the Intel(R) SGX PSW is built under the condition that the environment variable ``DEB_BUILD_OPTIONS="nostrip"`` is set. On Ubuntu 18.04, you need to install the debug package by entering the following command:
285304
```
286305
$ cd linux/installer/deb/libsgx-enclave-common
287-
$ sudo dpkg -i ./libsgx-enclave-common-dbgsym_${version}-${revision}_${arch}.ddeb
306+
$ sudo dpkg -i ./libsgx-enclave-common-dbgsym_${version}-${revision}_amd64.ddeb
288307
```
289308
- On Red Hat Enterprise Linux 7.4 and CentOS 7.5:
290309
- On Fedora 27:

0 commit comments

Comments
 (0)