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

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.

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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

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?

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

 

Leave a Comment

Please sign in to add a comment. Not a member? Join today