You are not logged in.

#1 2014-02-27 19:14:48

smsware
Member
From: Szczecin, Poland
Registered: 2012-08-14
Posts: 149
Website

[SOLVED] Application can't see existing library

I've installed an application:

[sms@new-host ~]$ ls /usr/local/bin | grep MinOZW
MinOZW

It installed libraries next to it:

[sms@new-host ~]$ ls /usr/local/lib /usr/local/lib/pkgconfig | grep libopenzwave
libopenzwave.so
libopenzwave.so.1.0
libopenzwave.pc

System sees the application but the application can not see the libraries:

[sms@new-host ~]$ MinOZW
MinOZW: error while loading shared libraries: libopenzwave.so.1.0: cannot open shared object file: No such file or directory

What could be the reason?

Last edited by smsware (2014-02-27 20:57:22)

Offline

#2 2014-02-27 20:00:23

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] Application can't see existing library

Run `ldconfig`

If that doesn't do it, I would guess that the dynamic linker isn't setup to look in /usr/local/lib. You'd need to add a file to /etc/ld.so.conf.d/

Last edited by Scimmia (2014-02-27 20:06:43)

Offline

#3 2014-02-27 20:57:07

smsware
Member
From: Szczecin, Poland
Registered: 2012-08-14
Posts: 149
Website

Re: [SOLVED] Application can't see existing library

Thank you, ldconfig did nothing but adding the file helped. Marking as solved. :-)

Offline

Board footer

Powered by FluxBB