我在尝试交叉编译 GDB 时遇到此错误(使用 --with-python
标志):
checking for python: /usr/bin/python
checking for python2.7: no
configure: error: python is missing or unusable
我确保在 /usr/bin
中安装了 python2.7。我什至删除了软件包并重新安装了它。我尝试使用 --with-python=/usr/bin
和 --with-python=/usr/local
,但没有成功。虽然安装了 2.7,但我肯定知道。知道该怎么做吗?
最佳答案
我在 Debian 6.0 上编译 GDB 7.4.1 时遇到了同样的问题
解决方案是安装 python header
sudo apt-get install python2.6-dev
然后用正确的标志进行配置
./configure --with-python
关于交叉编译 GDB 时出现 Python 丢失或不可用错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10792844/