LD_LIBRARY_PATH不适用于当前目录(库具有正确的体系结构)

时间:2017-09-24 02:22:21

标签: linker linker-errors elf

我有一个可执行文件及其依赖库在同一路径中,但前者没有找到后者:

$ LD_LBRARY_PATH='.' ./img_matcher
./img_matcher: error while loading shared libraries: libmlx_common_atoms.so: cannot open shared object file: No such file or directory

$ file img_matcher
img_matcher: ELF 64-bit LSB  executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=7cd572700424d204833657090a7e25b98ec3b819, not stripped

$ file libmlx_common_atoms.so 
libmlx_common_atoms.so: ELF 64-bit LSB  shared object, x86-64, version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=167baeeefe4b2692b455d38571dc85328ce8ed7f, not stripped

我错过了什么?

0 个答案:

没有答案