Python交叉编译GDB时缺少或无法使用的错误 [英] Python missing or unusable error while cross compiling GDB

查看:1143
本文介绍了Python交叉编译GDB时缺少或无法使用的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试交叉编译GDB时(使用 - with-python 标志),我得到这个错误:



检查python:/ usr / bin / python
检查python2.7:no
configure:error:python is缺少或无法使用

我确定我在 / usr中安装了python2.7 / bin中。我甚至拆下了包装并重新安装。我尝试使用 - with-python = / usr / bin - with-python = / usr / local ,但没有运气。我确实知道2.7虽然安装。任何想法在做什么?

解决方案

在编译GDB 7.4.1时,我在Debian 6.0上遇到同样的问题



解决方案是安装python头文件
$ b $ $ pre $ sudo apt-get install python2.6 -dev

然后用正确的标志配置

  ./ configure --with-python 


I get this error while attempting to cross-compile GDB (using the --with-python flag):

checking for python: /usr/bin/python
checking for python2.7: no
configure: error: python is missing or unusable

I made sure I had python2.7 installed in /usr/bin. I even removed the package and installed it again. I tried using --with-python=/usr/bin and --with-python=/usr/local, but no luck. I know for sure though that 2.7 is installed though. Any idea on what to do?

解决方案

I had the same problem on Debian 6.0 when compiling GDB 7.4.1

The solution was to install python headers

sudo apt-get install python2.6-dev

and then configure with the right flag

./configure --with-python

这篇关于Python交叉编译GDB时缺少或无法使用的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆