当我尝试重./configure
来AWN 0.4版我收到此错误:
configure: error: in `/home/desktop/Software/avant-window-navigator-0.4.0':
configure: error:
Could not link test program to Python. Maybe the main Python library has been
installed in some non-standard library path. If so, pass it to configure,
via the LDFLAGS environment variable.
Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib"
============================================================================
ERROR!
You probably have to install the development version of the Python package
for your distribution. The exact name of this package varies among them.
所以或许我可以通过将 python 库的路径添加到命令来解决这个问题。但我不知道它在哪里。
查看完整输出这里
答案1
此消息不是要求提供 Python 库本身,而是要求提供与之链接的标头。然后您可以使用以下命令安装:
sudo apt-get install python-dev
您可能缺少一些其他依赖项。
答案2
您应该能够在以下位置找到它
/usr/lib/
/usr/local/lib/
答案3
我发现自己在使用 VAMOS Automotive Simulator 时也遇到了同样的情况。Python 版本在配置文件中是硬编码的,因此在我的例子中,我必须安装该版本:
apt-get install python3.4-dev