sslab-gatech / opensgx

OpenSGX
Other
288 stars 80 forks source link

Add build instructions for Arch Linux #25

Open jonhoo opened 8 years ago

jonhoo commented 8 years ago

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

yaourt -S opensgx-git

Otherwise, download, make, and install like any other AUR package:

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>.