〖Android〗arm-linux-androideabi-gdb报 libpython2.6.so.1.0: cannot open shared object file错误的解决方法

时间:2021-08-24 11:46:26

执行:

  prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-gdb out/target/product/rk30sdk/symbols/system/bin/app_process

报错:

  prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-gdb: error while loading shared libraries: libpython2.6.so.1.0: cannot open shared object file: No such file or directory

分析:

 ldd /media/Source/VDI4.-OS4C/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-g
db
linux-vdso.so. => (0x00007fffaa114000)
libncurses.so. => /lib/x86_64-linux-gnu/libncurses.so. (0x00007f5d811f7000)
libz.so. => /lib/x86_64-linux-gnu/libz.so. (0x00007f5d80fde000)
libm.so. => /lib/x86_64-linux-gnu/libm.so. (0x00007f5d80cd7000)
libpthread.so. => /lib/x86_64-linux-gnu/libpthread.so. (0x00007f5d80ab9000)
libdl.so. => /lib/x86_64-linux-gnu/libdl.so. (0x00007f5d808b5000)
libutil.so. => /lib/x86_64-linux-gnu/libutil.so. (0x00007f5d806b1000)
libpython2..so.1.0 => not found
libc.so. => /lib/x86_64-linux-gnu/libc.so. (0x00007f5d802ec000)
libtinfo.so. => /lib/x86_64-linux-gnu/libtinfo.so. (0x00007f5d800c2000)
/lib64/ld-linux-x86-.so. (0x00007f5d8143e000)

  

解决方法:

  通过Google搜索,找到了答案:http://code.google.com/p/android/issues/detail?id=37847#c9

sudo ln -s /usr/lib/x86_64-linux-gnu/libpython2..so.1.0 /usr/lib/x86_64-linux-gnu/libpython2..so.1.0

  然后,问题解决~