zpavlinovic
zpavlinovic

Reputation: 1547

could not load a library

I am using a tool that repeatedly returns an error saying that it cannot load a library file (libppl.so.12: cannot open shared object file: No such file or directory) at <path_to_file>. The thing is that the required file is actually there.

I've tried setting the LD_LIBRARY_PATH, adding entries to ld.so.conf and ld.so.conf.d and then running ldconfig, which are solutions I found on the links provided bellow. The problem, however, is still there. When running ldconfig -v, I can see that it looks at the file directory but does not populate the cache for any of the so files in the directory, including the one at <path_to_file>.

What could be the problem?

useful links:

cannot open shared object file: No such file or directory

Linux error while loading shared libraries: cannot open shared object file: No such file or directory

Upvotes: 1

Views: 3505

Answers (1)

xvan
xvan

Reputation: 4855

The tool may be 32 bits and you've the 64 bits version of the library. You can check the binary architecture via the file command.

Also, you can force the library via LD_PRELOAD

Upvotes: 2

Related Questions