I changed the python detection a couple of days ago, so likely that is what is causing you problems.
a) do you have the python development package b) do you have a python-config executable c) what is in you config.h d) what does "grep PYTHON config log" show e) how does the build fail Christian. On Thu, Mar 5, 2009 at 6:36 AM, Michael Petch <[email protected]> wrote: > > You are correct. After further investigation (reviewing config.log) the > reason python isn't being picked up is likely because you do not have the > python development file (including python headers) installed. I didn't have > them installed here and was seeing: > > configure:23726: checking for a Python interpreter with version >= 2.2 > $t('2.2', '.')) + [0, 0, 0] minverhex = 0 for i in xrange(0, 4): minverhex = > (minverhex << 8) + minver[i] sys.exit(sys.hexversion < minverhex) > configure:23744: $? = 0 > configure:23751: result: python > configure:23759: checking for python > configure:23777: found /usr/bin/python > configure:23789: result: /usr/bin/python > configure:23809: checking for python version > configure:23816: result: 2.5 > configure:23828: checking for python platform > configure:23835: result: linux2 > configure:23842: checking for python script directory > configure:23850: result: ${prefix}/lib/python2.5/site-packages > configure:23859: checking for python extension module directory > configure:23867: result: ${exec_prefix}/lib/python2.5/site-packages > configure:23881: checking for headers required to compile python extensions > configure:23889: result: missing /usr/bin/python-config > configure:23910: gcc -E -ITHISWILLNEVERWORK conftest.c > conftest.c:64:20: error: Python.h: No such file or directory > configure:23916: $? = 1 > > Try installing the python-dev package for your platform and then try to > rebuild. After installing them here I got the expected result: > > configure:23726: checking for a Python interpreter with version >= 2.2 > $t('2.2', '.')) + [0, 0, 0] minverhex = 0 for i in xrange(0, 4): minverhex = > (minverhex << 8) + minver[i] sys.exit(sys.hexversion < minverhex) > configure:23744: $? = 0 > configure:23751: result: python > configure:23759: checking for python > configure:23777: found /usr/bin/python > configure:23789: result: /usr/bin/python > configure:23809: checking for python version > configure:23816: result: 2.5 > configure:23828: checking for python platform > configure:23835: result: linux2 > configure:23842: checking for python script directory > configure:23850: result: ${prefix}/lib/python2.5/site-packages > configure:23859: checking for python extension module directory > configure:23867: result: ${exec_prefix}/lib/python2.5/site-packages > configure:23881: checking for headers required to compile python extensions > configure:23910: gcc -E -I/usr/include/python2.5 -I/usr/include/python2.5 > conftest.c > configure:23916: $? = 0 > configure:23921: result: found > > When running with python I now get: > > ./gnubg -t -p test.py > GNU Backgammon 0.90.0 > Copyright (C) 2008 by the AUTHORS; for details type `show version'. > This program comes with ABSOLUTELY NO WARRANTY; for details type > `show warranty'. > This is free software, and you are welcome to redistribute it > under certain conditions; type `show copying' for details. > > ***WARNING*** > > Note that GNU Backgammon does not use the gnubg.bd file. > You should obtain the file gnubg_ts0.bd or generate > it yourself using the program 'makebearoff'. > You can generate the file with the command: > makebearoff -t 6x6 -f gnubg_ts0.bd > You can also generate other bearoff databases; see > README for more details > > Python file (test.py) not found > > > This implies python was installed. If it wasn't it would give an error > stating that. > > On 04/03/09 9:35 PM, "保坂範行" <[email protected]> wrote: > >> Hi, Michael >> >> Have you tried -t -p options? >> >> [n...@asama]~/Desktop/work/gnubg/git% ./gnubg -t -p test.py >> GNU Backgammon 0.90.0 >> Copyright (C) 2008 by the AUTHORS; for details type `show version'. >> This program comes with ABSOLUTELY NO WARRANTY; for details type >> `show warranty'. >> This is free software, and you are welcome to redistribute it >> under certain conditions; type `show copying' for details. >> GNU Backgammon build without Python. >> >> >> Nori >> >> > > > > > _______________________________________________ > Bug-gnubg mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/bug-gnubg > _______________________________________________ Bug-gnubg mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-gnubg
