Community
cancel
Showing results for 
Search instead for 
Did you mean: 
sharma__ramya
Beginner
125 Views

Error while loading shared libraries: libsgx_urts_sim.so

I am using SGX SDK in simulation debug mode on ubuntu 18.04, using Eclipse plugin.

When I try to run a basic "Hello world" program, it gives out the error:

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

I previously set the enviornment variable via the following command:

source /opt/intel/sgxsdk/environment

Still the issue was not resolved. Then I tried to do the following:

"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."

I am getting the same error.

0 Kudos
1 Reply
Scott_R_Intel
Employee
125 Views

Hi Ramya.

The file in /etc/ld.so.conf.d only needs to contain the library folder, not the library name on the end.  Also, you will need to run the "ldconfig" command after adding the new library path file.

Regards.

Scott