我在尝试交叉编译 GDB 时收到此错误(使用--with-python
flag):
checking for python: /usr/bin/python
checking for python2.7: no
configure: error: python is missing or unusable
我确保我安装了 python2.7/usr/bin
。我什至删除了软件包并重新安装了它。我尝试使用--with-python=/usr/bin
and --with-python=/usr/local
,但没有运气。我确信 2.7 已经安装了。知道该怎么做吗?
我在 Debian 6.0 上编译 GDB 7.4.1 时遇到了同样的问题
解决办法是安装python headers
sudo apt-get install python2.6-dev
然后使用正确的标志进行配置
./configure --with-python
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)