Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.
1448 Discussions

libsgx_urts_sim.so: cannot open shared object file: No such file or directory

dai_c_
Beginner
2,005 Views

When I use SGX SDK(2.0) to run a test in Simulation mode , It can Compile correctly,but when I use `./app` to run the test,It will give the error

 

./app: error while loading shared libraries: libsgx_urts_sim.so: cannot open shared object file: No such file or directory

and I have use source to  set up the needed environment variables.

0 Kudos
3 Replies
Rodolfo_S_
New Contributor III
2,005 Views
Hi. If you are using the SDK for Linux, you're most likely missing some environment variable telling where to find that lib. Regards, Rodolfo
0 Kudos
dai_c_
Beginner
2,005 Views
I have already considered this situation,but I have use $ source ${sgx-sdk-install-path}/environment to set up the needed environment variables before compiling my code.also if I have missed some environment variable,It can't be compiled,but I can compile correctly,Is there other reasons can cause this problem?
0 Kudos
you_w_
New Contributor III
2,005 Views

Hi :

You can try source environment again. If it doesn't work,  you can add the folder(${sgx-sdk-install-path}/ib64/) containing libsgx_urts_sim.so to ld path.

1. add a file under /etc/ld.so.conf.d with content like this :

/opt/intel/sgxsdk/lib64/libsgx_urts_sim.so

2. Then run

ldconfig

 

0 Kudos
Reply