On 03/30/2017 07:38 AM, Natalia Theologou wrote:
> 
> 
> Hello,
> 
> 
> I follow these instructions - Sample Application:
> 
> 
> <https://wiki.iotivity.org/security_resource_manager>
> https://wiki.iotivity.org/security_resource_manager
> security_resource_manager [Wiki] - 
> wiki.iotivity.org<https://wiki.iotivity.org/security_resource_manager>
> wiki.iotivity.org
> Security Resource Manager (SRM) provides management of Secure Virtual 
> Resources (SVRs) and access control based on policies defined by SVRs. SVRs 
> are defined in a ...
> 
> but when I execute the
> 
> $ ./ocserverbasicops &
> 
> command in the terminal it returns the error:
> 
> ./ocserverbasicops: error while loading shared libraries: liboctbstack.so: 
> cannot open shared object file: No such file or directory
> 
> However the liboctbstack.so is in the folder 
> <iotivity-base>/out/<...>/release  and I have executed the $ export 
> LD_LIBRARY_PATH=<iotivity-base>/out/<...>/release  command.
> 
> 
> 
> Have you got any idea on how to solve this?

you shouldn't even need to export LD_LIBRARY_PATH.

try:

ldd ocserverbasicops

and:

readelf -d ocserverbasicops

to get some idea what's going on. The latter should indicate a library
rpath already pointing to where the library is, something like this:

 0x000000000000000f (RPATH)              Library rpath:
[/home/mats/iotivity.work/out/linux/x86_64/release/]




Reply via email to