I'm working with Intel SGX on Ubuntu 20.04 and trying to run some SampleApps. However I get errors like: ./app: error while loading shared libraries: libsgx_urts.so.2: cannot open shared object file: No such file or directory
I checked on the internet and people say I need to do source /opt/intel/sgxsdk/environment. But I don't have /environment in sgxsdk. -bash: /opt/intel/sgxsdk/environment: No such file or directory
You must verify that you've installed the Intel SGX sdk. Either from the github repo or directly downloading the binary from the intel repo.
If you're using the github repo, you should follow the build process then the installation of the sdk. The steps are the following on ubuntu 20.04 for example: