在编译运行./arm-linux-gnueabihf-gdb时出现问题。
问题:error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file
1 没有安装libpython2.7.so.1.0
如果是没有安装,那么执行下面两个命令直接安装一个共享库即可:
apt-get install libpython2.7 sudo apt-get install libatlas3-base
2 安装好libpython2.7.so.1.0之后,问题就是如何让系统找到依赖包。
1)whereis libpython2.7.so.1.0 //找到安装路径
2)sudo vim /etc/ld.so.conf //将安装路径加入到该文件中
3)sudo /sbin/ldconfg -v //重新加载ld.so.conf文件
在相应的文件夹中继续执行./arm-linux-gnueabihf-gdb出现以下指令便可安装成功。
ref:gdb解决方法



