简体   繁体   中英

Compiling MySQL Workbench on Ubuntu 13.04

I am having problems compiling MySQL Workbench on Ubuntu 13.04. I downloaded the source from the MySQL site and during the configure part where it checks the dependencies it says:

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

I than tried to hack and modify the configure file and removed the part where it checked for the Python headers.

By doing that the checks succeeds and I can run make , but during make process it says it cannot find Python.h (which is expected):

python_context.h:28:21: fatal error: Python.h: No such file or directory

So I searched the installation directory of Python 2.7 and found Python.h . I searched all over the Internet, but couldn't find an answer how to solve this problem. Any help would be appreciated.

It cannot find the so file. I'm not sure what the proper solution is, but the following works around it:

sudo ln -s /usr/lib/x86_64-linux-gnu/libpython2.7.so /usr/lib/libpython2.7.so

But after all of that, I got (unrelated) compile errors, so I gave up, and just went with the slightly outdated packages from Ubuntu.

Ubunto 13.04: Desinstale o mysql-workbench instalado: $ sudo apt-get -f upgrade

Instale o python-dev: $ sudo apt-get install python-dev

Instale via terminal o workbench: $ sudo apt-get install mysql-workbench

Para mim funcionou.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM