---------安装依赖----------
----------下载 DCAP 驱动----------
–2021-09-17 16:56:58-- https://download.01.org/intel-sgx/latest/dcap-latest/linux/distro/ubuntu20.04-server/sgx_linux_x64_driver_1.41.bin
Resolving download.01.org (download.01.org)… 223.119.143.219, 2600:140e:6:9b0::4b21, 2600:140e:6:9a9::4b21
Connecting to download.01.org (download.01.org)|223.119.143.219|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 41637 (41K) [application/octet-stream]
Saving to: ‘/tmp/sgx_linux_x64_driver_1.41.bin’
/tmp/sgx_linux_x64_ 100%[===================>] 40.66K --.-KB/s in 0.05s
2021-09-17 16:56:58 (865 KB/s) - ‘/tmp/sgx_linux_x64_driver_1.41.bin’ saved [41637/41637]
----------添加运行权限----------
----------安装DCAP驱动----------
Unpacking Intel SGX Driver … done.
Verifying the integrity of the install package … done.
Installing Intel SGX Driver …
/tmp/sgx-driver-DYXgDp /home/xujian
install -d /opt/intel/sgxdriver/package
install -d /opt/intel/sgxdriver/scripts
cp -r package/* /opt/intel/sgxdriver/package
install scripts/* /opt/intel/sgxdriver/scripts
/home/xujian
Kernel preparation unnecessary for this kernel. Skipping…
Building module:
cleaning build area…
‘make’ KDIR=/lib/modules/5.11.0-34-generic/build…(bad exit status: 2)
ERROR (dkms apport): binary package for sgx: 1.41 not found
Error! Bad return status for module build on kernel: 5.11.0-34-generic (x86_64)
Consult /var/lib/dkms/sgx/1.41/build/make.log for more information.
Failed to build driver. Please check if the matching kernel headers are installed.
----------安装DCAP驱动失败,请检查驱动安装日志!----------