Community
cancel
Showing results for 
Search instead for 
Did you mean: 
dai_c_
Beginner
503 Views

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

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
503 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
dai_c_
Beginner
503 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?
you_w_
New Contributor III
503 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

 

Reply