I've now updated the Arch package so that it works with HEAD. It might be good to include installation instructions similar to those you provide for Fedora and Ubuntu? I'd submit a PR, but wasn't sure how you wanted them included given that the flow is somewhat different when a package is available:
Installation if you have an AUR helper like yaourt installed should be as simple as
mkdir build && cd build
curl -L -O https://aur.archlinux.org/cgit/aur.git/snapshot/opensgx-git.tar.gz
tar -xvf opensgx.tar.gz && cd opensgx
makepkg -sri
Note that the install you get with this procedure puts device.key in /etc/sgx/device.key, and places the various sgx-* binaries in /usr/bin. Furthermore, header files are installed to /usr/include/sgx/, and are stripped of their sgx- prefix, so you'll have to change hello.c to use #include <sgx/lib.h> instead of #include <sgx-lib.h>.
I've now updated the Arch package so that it works with HEAD. It might be good to include installation instructions similar to those you provide for Fedora and Ubuntu? I'd submit a PR, but wasn't sure how you wanted them included given that the flow is somewhat different when a package is available:
Installation if you have an AUR helper like yaourt installed should be as simple as
Otherwise, download, make, and install like any other AUR package:
Note that the install you get with this procedure puts
device.key
in/etc/sgx/device.key
, and places the varioussgx-*
binaries in/usr/bin
. Furthermore, header files are installed to/usr/include/sgx/
, and are stripped of theirsgx-
prefix, so you'll have to changehello.c
to use#include <sgx/lib.h>
instead of#include <sgx-lib.h>
.