我在Ubuntu 13.04上编译MySQL Workbench时遇到问题。我从MySQL站点下载了源代码,并在配置部分中检查了它所依赖的依赖项:
checking for python2.6... no
checking for python2.7... yes
checking for Python libraries... not found
configure: error: Python C development headers/libraries not found
我试图破解并修改配置文件,并删除了检查Python标头的部分。
通过执行此操作,检查成功,我可以运行make
,但在make
进程中,它表示无法找到Python.h
(这是预期的):
python_context.h:28:21: fatal error: Python.h: No such file or directory
所以我搜索了Python 2.7
的安装目录,找到了Python.h
。我在互联网上搜索,但找不到如何解决这个问题的答案。任何帮助将不胜感激。
答案 0 :(得分:1)
找不到so
文件。我不确定适当的解决方案是什么,但以下是解决方法:
sudo ln -s /usr/lib/x86_64-linux-gnu/libpython2.7.so /usr/lib/libpython2.7.so
但是在完成所有这些之后,我得到了(无关的)编译错误,所以我放弃了,只是使用了Ubuntu稍微过时的软件包。
答案 1 :(得分:0)
Ubunto 13.04: desinstale o mysql-workbench instalado: $ sudo apt-get -f upgrade
Instale o python-dev: $ sudo apt-get install python-dev
通过终端o工作台安装Instale: $ sudo apt-get install mysql-workbench
Para mim funcionou。