- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page