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

 

执行:

  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

 

分析:

 1 ldd /media/Source/VDI4.3-OS4C/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-g
 2 db
 3         linux-vdso.so.1 =>  (0x00007fffaa114000)
 4         libncurses.so.5 => /lib/x86_64-linux-gnu/libncurses.so.5 (0x00007f5d811f7000)
 5         libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f5d80fde000)
 6         libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f5d80cd7000)
 7         libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f5d80ab9000)
 8         libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f5d808b5000)
 9         libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f5d806b1000)
10         libpython2.6.so.1.0 => not found
11         libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f5d802ec000)
12         libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f5d800c2000)
13         /lib64/ld-linux-x86-64.so.2 (0x00007f5d8143e000)

  

解决方法:

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

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

  然后,问题解决~

 

posted @ 2015-04-28 11:29  scue  阅读(7200)  评论(0编辑  收藏  举报