You are not logged in.

#1 2010-11-18 13:26:35

GhostDevil
Member
Registered: 2008-10-29
Posts: 11

Help Compiling MySQL Workbench [Solved]

Hello I am attempting to compile MySQL Workbench 5.2.29 but is having an issue finding Python.h. I know for a fact that both python2 and python3 have Python.h. I admit I have't compiled many programs myself so I'm hoping this is just my ignorance on how the process works any ideas?

./../../backend/wbpublic/ -Wextra -Wall -Wno-unused -Wno-deprecated -ggdb3 -DENABLE_DEBUG -DDEBUG -DTIXML_USE_STL=1 -MT mforms_wrap.lo -MD -MP -MF .deps/mforms_wrap.Tpo -c mforms_wrap.cxx  -fPIC -DPIC -o .libs/mforms_wrap.o
mforms_wrap.cxx:129:20: fatal error: Python.h: No such file or directory
compilation terminated.
make[4]: *** [mforms_wrap.lo] Error 1
make[4]: Leaving directory `/usr/local/home/ghost/downloads/mysql-workbench-gpl-5.2.29-src/library/forms/swig'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/home/ghost/downloads/mysql-workbench-gpl-5.2.29-src/library/forms'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/home/ghost/downloads/mysql-workbench-gpl-5.2.29-src/library'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/home/ghost/downloads/mysql-workbench-gpl-5.2.29-src'
make: *** [all] Error 2

and...


locate Python.h
/usr/include/python2.7/Python.h
/usr/include/python3.1/Python.h


How do I make it known where to find Python.h?

Thanks!

Last edited by GhostDevil (2010-11-18 16:20:33)

Offline

#2 2010-11-18 13:28:45

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Help Compiling MySQL Workbench [Solved]

we have mysql-workbench in community and it has even a patch for python27.

use abs to get the build sources


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2010-11-18 13:39:11

GhostDevil
Member
Registered: 2008-10-29
Posts: 11

Re: Help Compiling MySQL Workbench [Solved]

Thanks I see that... this was more of a learning experience, as I also compiled mysql myself. I should have made that clear and apologize. But something I didn't think about was looking at the PKGBUILD etc... for a possible answer smile

Offline

#4 2010-11-18 16:22:59

GhostDevil
Member
Registered: 2008-10-29
Posts: 11

Re: Help Compiling MySQL Workbench [Solved]

Looking at the files package database answered my question. Basically the compile failed because of python3 and editing the configure.in to use python2 fixed the issue and I was able to compile and install without issue.

Offline

Board footer

Powered by FluxBB