[dev] liboctbstack.so - right email

2017-03-30 Thread Natalia Theologou


Hello,


I follow these instructions - Sample Application:



https://wiki.iotivity.org/security_resource_manager
security_resource_manager [Wiki] - 
wiki.iotivity.org
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 /out/<...>/release  
and I have executed the $ export 
LD_LIBRARY_PATH=/out/<...>/release  command.



Have you got any idea on how to solve this?


Thank you in advance,
Natalia
-- next part --
An HTML attachment was scrubbed...
URL: 



[dev] liboctbstack.so - right email

2017-03-30 Thread Mats Wichmann
On 03/30/2017 07:38 AM, Natalia Theologou wrote:
> 
> 
> Hello,
> 
> 
> I follow these instructions - Sample Application:
> 
> 
> 
> https://wiki.iotivity.org/security_resource_manager
> security_resource_manager [Wiki] - 
> wiki.iotivity.org
> 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 
> /out/<...>/release  and I have executed the $ export 
> LD_LIBRARY_PATH=/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:

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