ldd says “not found” even though library is in my LD_LIBRARY_PATH

后端 未结 1 1814
故里飘歌
故里飘歌 2021-02-07 12:33
$ ldd libpmsfdcwrt.so
        linux-gate.so.1 =>  (0x004ae000)
        libdl.so.2 => /lib/libdl.so.2 (0x00417000)
        [ ... elided ... ]
        libz.so.1 =>         


        
1条回答
  •  闹比i
    闹比i (楼主)
    2021-02-07 13:04

    The problem was a 32-bit/64-bit collision:

    $ file libpmsfdcwrt.so
    libpmsfdcwrt.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, not stripped
    
    $ file /lib64/libz.so.1.2.3
    /lib64/libz.so.1.2.3: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped
    

    Thank you, everyone, for pointing me in the correct direction.

    0 讨论(0)
提交回复
热议问题