bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FW: [Bug-gnubg] build error: configure --with-python is not working.


From: Michael Petch
Subject: FW: [Bug-gnubg] build error: configure --with-python is not working.
Date: Thu, 05 Mar 2009 00:02:44 -0700
User-agent: Microsoft-Entourage/12.15.0.081119

Christian,

Nori sent me this email:

Of particular interest is that he apparently has Python-devel installed, but
python-config is missing, thus the check fails because the path for Python.h
will be unknown.

configure:23042: checking for headers required to compile python extensions
configure:23050: result: missing /usr/bin/python-config
configure:23066: gcc -E  -ITHISWILLNEVERWORK conftest.c
conftest.c:69:20: error: Python.h: No such file or directory

------ Forwarded Message
From: 保坂範行 <address@hidden>
Date: Thu, 5 Mar 2009 15:50:18 +0900
To: Michael Petch <address@hidden>
Subject: Re: [Bug-gnubg] build error: configure --with-python is not
working.

Hi, Micheal.

> 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:
I have them. what's wrong??!!

address@hidden locate Python.h
/home/nori/Desktop/survey/python/Python-2.4.3/Include/Python.h
/home/nori/Desktop/work/packaging/pysvn/pysvn-1.5.1/Import/pycxx-5.4.0/CXX/W
rapPython.h
/home/nori/Desktop/work/packaging/pysvn/pysvn-1.5.2/Import/pycxx-5.4.0/CXX/W
rapPython.h
/home/nori/Desktop/work/packaging/workbench/pysvn-1.5.3/Import/pycxx-5.4.0/C
XX/WrapPython.h
/home/nori/Desktop/work/python/2.4/Include/Python.h
/home/nori/Desktop/work/python/2.5/Include/Python.h
/home/nori/Desktop/work/python/2.6/Include/Python.h
/home/nori/Desktop/work/python/3.0/Include/Python.h
/home/nori/Desktop/work/python/3.1/Include/Python.h
/home/nori/rpmbuild/BUILD/Python-2.4.6/Include/Python.h
/home/nori/rpmbuild/BUILD/Python-2.4.6Include/Python.h
/opt/Plone-2.5.3/Python-2.4.4/include/python2.4/Python.h
/usr/include/python2.4/Python.h
/usr/local/include/python2.5/Python.h
/usr/share/doc/swig-1.3.29/Manual/Python.html
/usr/src/redhat/BUILD/wxPython-src-2.8.7.1/wxPython/include/wx/wxPython/wxPy
thon.h

address@hidden yum info python-devel

<< snip >>

Installed Packages
Name   : python-devel
Arch   : x86_64
Version: 2.4.3
Release: 21.el5
Size   : 13 M
Repo   : installed
Summary: The libraries and header files needed for Python development.
Description:
The Python programming language's interpreter can be extended with
dynamically loaded extensions and can be embedded in other programs.
This package contains the header files and libraries needed to do
these types of tasks.

Install python-devel if you want to develop Python extensions.  The
python package will also need to be installed.  You'll probably also
want to install the python-docs package, which contains Python
documentation.


Here is part of config.log

configure:22903: python -c import sys, string # split strings by '.'
and convert to numeric. Append some zeros # because we need at lea
st 4 digits for the hex conversion. minver = map(int,
string.split('2.2', '.')) + [0, 0, 0] minverhex = 0 for i in xrange(0,
4): minver
hex = (minverhex << 8) + minver[i] sys.exit(sys.hexversion < minverhex)
configure:22906: $? = 0
configure:22913: result: python
configure:22921: checking for python
configure:22939: found /usr/bin/python
configure:22951: result: /usr/bin/python
configure:22970: checking for python version
configure:22977: result: 2.4
configure:22989: checking for python platform
configure:22996: result: linux2
configure:23003: checking for python script directory
configure:23011: result: ${prefix}/lib/python2.4/site-packages
configure:23020: checking for python extension module directory
configure:23028: result: ${exec_prefix}/lib64/python2.4/site-packages
configure:23042: checking for headers required to compile python extensions
configure:23050: result: missing /usr/bin/python-config
configure:23066: gcc -E  -ITHISWILLNEVERWORK conftest.c
conftest.c:69:20: error: Python.h: No such file or directory

Nori



On Thu, Mar 5, 2009 at 2:36 PM, Michael Petch <address@hidden>
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, "保坂範行" <address@hidden> wrote:
>
>> Hi, Michael
>>
>> Have you tried -t -p ?options?
>>
>> address@hidden/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
>>
>>
>
>
>

------ End of Forwarded Message

Attachment: config.log
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]