From: "Roger Pau Monné" <roger.pau@entel.upc.edu>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: "yang.z.zhang@intel.com" <yang.z.zhang@intel.com>,
KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: Unable to find Python development headers
Date: Thu, 29 Mar 2012 15:59:50 +0200 [thread overview]
Message-ID: <CAPLaKK512WjaYdShGfnH+=W9pc68WSjcJb6bagJ7xDrN8p-2gg@mail.gmail.com> (raw)
In-Reply-To: <1333011687.18810.38.camel@zakaz.uk.xensource.com>
2012/3/29 Ian Campbell <Ian.Campbell@citrix.com>:
> Adding Roger.
> On Thu, 2012-03-29 at 03:59 +0100, KUWAMURA Shin'ya wrote:
>> Hi Yang,
>>
>> >>>>> On Thu, 29 Mar 2012 02:19:36 +0000
>> >>>>> yang.z.zhang@intel.com("Zhang, Yang Z") said:
>> >
>> > When running ./configure, I get the following error message:
>> > checking for python... /usr/bin/python
>> > checking for python version >= 2.3 ... yes
>> > ./configure: line 6147: python-config: command not found
>> > ./configure: line 6228: python-config: command not found
>> > checking Python.h usability... no
>> > checking Python.h presence... no
>> > checking for Python.h... no
>> > configure: error: Unable to find Python development headers
>> > I use rhel5.5 and here is the installed python RPM on my box:
>> > Is there any pkg I need to install?
>>
>> Python 2.4 does not have python-config.
>
> I think we need handle this case with a fallback for pytyhon 2.3 and 2.4
> which doesn't use python-config.
>
> What did we used to do pre-autoconf?
If I recall correctly we only checked for Python.h existence.
>> If you don't require Python tools, you can run:
>> ./configure --disable-pythontools
>>
>> Or you may avoid it:
>> ./configure APPEND_INCLUDES=/usr/include/python2.4/
>>
>> However, you will find an another issue:
>>
>> checking for PyArg_ParseTuple in -l... no
>> configure: error: Unable to find a suitable python development library
>
> Presumably this is a knock on effect from the previous failure and the
> workaround you tried, which looks incomplete to me. I expect you need to
> add -lpythonX.Y to some variable or other but the right solution is to
> fix the python detection for the older python versions.
I've just posted a patch that hopefully covers all the supported
python versions, so we don't have to perform different checks
depending on the python versions, which is annoying.
>>
>> I'm afraid I don't know how to avoid this issue.
>>
>> Best regards,
>
>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
prev parent reply other threads:[~2012-03-29 13:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-29 2:19 Unable to find Python development headers Zhang, Yang Z
2012-03-29 2:59 ` KUWAMURA Shin'ya
2012-03-29 9:01 ` Ian Campbell
2012-03-29 13:59 ` Roger Pau Monné [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAPLaKK512WjaYdShGfnH+=W9pc68WSjcJb6bagJ7xDrN8p-2gg@mail.gmail.com' \
--to=roger.pau@entel.upc.edu \
--cc=Ian.Campbell@citrix.com \
--cc=kuwa@jp.fujitsu.com \
--cc=xen-devel@lists.xensource.com \
--cc=yang.z.zhang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).