ubuntu-16.04-x64中安装GDB-8.2时,由于配置时要使用--with-python,而在make的过程中出错。配置和编译命令如下:

        #./configure --prefix=/usr/gdbserver --with-python

       #make

出现错误如下:

       checking whether to use python... yes
       checking for python... /usr/bin/python
       checking for python2.7... no
       configure: error: python is missing or unusable
       Makefile:9096: recipe for target 'configure-gdb' failed
       make[1]: *** [configure-gdb] Error 1
       make[1]: Leaving directory '/home/junhai/QT_ubuntu/gdb-8.2'
       Makefile:849: recipe for target 'all' failed
       make: *** [all] Error 2

在路径/usr/bin下能找到python2.7并且能运行python,……查了很久,最后在网站https://stackoverflow.com/questions/10792844/python-missing-or-unusable-error-while-cross-compiling-gdb找到类似的答案。

 

我的解决方法:

       #apt-get install python2.7-dev

再次,

       #./configure --prefix=/usr/gdbserver --with-python

       #make

通过,问题解决。

 

  

 

 

Logo

CSDN联合极客时间,共同打造面向开发者的精品内容学习社区,助力成长!

更多推荐