<p>尝试交叉编译GDB时出现此错误(使用<code>--with-python</code>标志):</p>
<pre class="lang-none prettyprint-override"><code>checking for python: /usr/bin/python
checking for python2.7: no
configure: error: python is missing or unusable
</code></pre>
<p>我确保在<code>/usr/bin</code>中安装了python2.7。我甚至删除了这个包并重新安装了它。我试着用<code>--with-python=/usr/bin</code>和<code>--with-python=/usr/local</code>,但是没有运气。我当然知道2.7已经安装了。知道怎么办吗?</p>