ubuntu-16.04-x64中安装GDB-8.2时报错 ,checking for python2.7... no

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

通过,问题解决。

 

  

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值