python安装完成后动态库libpython3.x.so.1.

2020-04-30  本文已影响0人  陆_志东

ldd python 快捷方式
查看动态库是否有

这里以3.8.2为例
cd /usr/local/python382
ldd ./bin/python3

    linux-vdso.so.1 =>  (0x00007ffd4d5fe000)
    libpython3.8.so.1.0 => not found
    libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f801a201000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f8019fe5000)
    libdl.so.2 => /lib64/libdl.so.2 (0x00007f8019de1000)
    libutil.so.1 => /lib64/libutil.so.1 (0x00007f8019bde000)
    libm.so.6 => /lib64/libm.so.6 (0x00007f80198dc000)
    libc.so.6 => /lib64/libc.so.6 (0x00007f801950e000)
    libfreebl3.so => /lib64/libfreebl3.so (0x00007f801930b000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f801a438000)

cp ./lib/libpython3.8.so.1.0 /usr/lib64
ldd ./bin/python3

    linux-vdso.so.1 =>  (0x00007ffeecd6f000)
    libpython3.8.so.1.0 => /lib64/libpython3.8.so.1.0 (0x00007f9e02599000)
    libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f9e02362000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f9e02146000)
    libdl.so.2 => /lib64/libdl.so.2 (0x00007f9e01f42000)
    libutil.so.1 => /lib64/libutil.so.1 (0x00007f9e01d3f000)
    libm.so.6 => /lib64/libm.so.6 (0x00007f9e01a3d000)
    libc.so.6 => /lib64/libc.so.6 (0x00007f9e0166f000)
    libfreebl3.so => /lib64/libfreebl3.so (0x00007f9e0146c000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f9e02b34000)
上一篇下一篇

猜你喜欢

热点阅读