You are not logged in.

#1 2013-05-05 05:37:32

Uchiha
Member
From: Sabará/MG - Brasil
Registered: 2011-09-07
Posts: 46

Python error when I've compiled MySQL Workbench source code (Solved)

Hi!

I tried to compile the MySQL Workbench source code. But, in make, I got this error:

checking for python2.6... no
checking for python2.7... yes
checking for Python libraries...   File "<string>", line 6
    print "-L" + cfg['LIBDIR'] + " -l" + cfg['LDLIBRARY'].lstrip("lib").rstrip(".so")
             ^
SyntaxError: invalid syntax
  File "<string>", line 2
    print sysconfig.get_python_inc()
                  ^
SyntaxError: invalid syntax
not found
configure: error: Python C development headers/libraries not found

How could I solve this?

Thanks.

Last edited by Uchiha (2013-05-05 13:39:19)


Linux user #519886

Offline

#2 2013-05-05 05:46:11

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: Python error when I've compiled MySQL Workbench source code (Solved)

It seems that the python3 interpreter is used. Somewhere in the code you'll have to replace calls to "python" with calls to "python2".
Edit: You should use the AUR package.

Last edited by progandy (2013-05-05 05:47:44)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#3 2013-05-05 08:25:28

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Python error when I've compiled MySQL Workbench source code (Solved)

Offline

#4 2013-05-05 13:33:14

Uchiha
Member
From: Sabará/MG - Brasil
Registered: 2011-09-07
Posts: 46

Re: Python error when I've compiled MySQL Workbench source code (Solved)

progandy wrote:

It seems that the python3 interpreter is used. Somewhere in the code you'll have to replace calls to "python" with calls to "python2".
Edit: You should use the AUR package.

karol wrote:

I tried to use the AUR package. But I got a strange error in compile. A kind of loop that spent so much time and, when the script gaves up, returned something like "Error in compile. Aborting".

EDIT:
In the AUR's comments, it seems really a bug in Python. Thanks to Feng-Huang to post a compiled version. I'm still testing, it looks ok until now. This is him (or her) comment:

Comentário de Feng-Huang
2013-04-16 18:20
x86_64 generic built in clean chroot : https://drive.google.com/folderview?id= … sp=sharing

Last edited by Uchiha (2013-05-05 13:38:23)


Linux user #519886

Offline

Board footer

Powered by FluxBB