2017年1月19日 星期四

當ldd 找不到share libary

#ldd perf
./perf: /usr/lib/libdw.so.1: version `ELFUTILS_0.157' not found (required by ./perf)
        linux-vdso.so.1 =>  (0x00007ffebadc7000)
        libunwind.so.8 => not found
        libunwind-x86_64.so.8 => not found
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f494f3e4000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f494f1dc000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f494ef5a000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f494ed56000)
        libelf.so.1 => /usr/lib/libelf.so.1 (0x00007f494eb41000)
        libdw.so.1 => /usr/lib/libdw.so.1 (0x00007f494e90c000)
        libaudit.so.0 => /lib/libaudit.so.0 (0x00007f494e6f4000)
        libslang.so.2 => /lib/x86_64-linux-gnu/libslang.so.2 (0x00007f494e35e000)
        libperl.so.5.10 => not found
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f494dfd1000)
        libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007f494dd9a000)
        libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f494db97000)
        libpython2.6.so.1.0 => not found
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f494d980000)
        liblzma.so.2 => /usr/lib/liblzma.so.2 (0x00007f494d75e000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f494f600000)
        libnuma.so.1 => not found
        liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f494d53b000)
        libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007f494d32b000)


這時候指定路徑去找就好
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/jimmy/210/perf_4.4.21_ok/lib

沒有留言:

張貼留言