* Unable to find Python development headers
@ 2012-03-29 2:19 Zhang, Yang Z
2012-03-29 2:59 ` KUWAMURA Shin'ya
0 siblings, 1 reply; 4+ messages in thread
From: Zhang, Yang Z @ 2012-03-29 2:19 UTC (permalink / raw)
To: xen-devel@lists.xensource.com
When running ./configure, I get the following error message:
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for perl... /usr/bin/perl
checking for ocamlc... no
checking for ocaml... no
checking for ocamldep... no
checking for ocamlmktop... no
checking for ocamlmklib... no
checking for ocamldoc... no
checking for ocamlbuild... no
checking for bash... /bin/sh
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:
python-dmidecode-3.10.8-4.el5
gnome-python2-gtksourceview-2.16.0-3.el5
python-ldap-2.2.0-2.1
python-devel-2.4.3-27.el5
gnome-python2-extras-2.14.2-6.el5
libselinux-python-1.33.4-5.5.el5
python-elementtree-1.2.6-5
gnome-python2-canvas-2.16.0-1.fc6
gnome-python2-desktop-2.16.0-3.el5
gnome-python2-applet-2.16.0-3.el5
python-2.4.3-27.el5
audit-libs-python-1.7.17-3.el5
python-sqlite-1.1.7-1.2.1
python-numeric-23.7-2.2.2
dbus-python-0.70-9.el5_4
rpm-python-4.4.2.3-18.el5
notify-python-0.1.0-3.fc6
gnome-python2-2.16.0-1.fc6
gnome-python2-gnomevfs-2.16.0-1.fc6
gnome-python2-gtkhtml2-2.14.2-6.el5
libxml2-python-2.6.26-2.1.2.8
gamin-python-0.1.7-8.el5
python-iniparse-0.2.3-4.el5
python-urlgrabber-3.1.0-5.el5
gnome-python2-libegg-2.14.2-6.el5
gnome-python2-bonobo-2.16.0-1.fc6
python-devel-2.4.3-27.el5
gnome-python2-gconf-2.16.0-1.fc6
gnome-python2-gnomeprint-2.16.0-3.el5
Is there any pkg I need to install?
best regards
yang
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Unable to find Python development headers
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
0 siblings, 1 reply; 4+ messages in thread
From: KUWAMURA Shin'ya @ 2012-03-29 2:59 UTC (permalink / raw)
To: yang.z.zhang; +Cc: xen-devel
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.
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
I'm afraid I don't know how to avoid this issue.
Best regards,
--
KUWAMURA Shin'ya
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Unable to find Python development headers
2012-03-29 2:59 ` KUWAMURA Shin'ya
@ 2012-03-29 9:01 ` Ian Campbell
2012-03-29 13:59 ` Roger Pau Monné
0 siblings, 1 reply; 4+ messages in thread
From: Ian Campbell @ 2012-03-29 9:01 UTC (permalink / raw)
To: KUWAMURA Shin'ya
Cc: yang.z.zhang@intel.com, Roger Pau Monne,
xen-devel@lists.xensource.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 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'm afraid I don't know how to avoid this issue.
>
> Best regards,
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Unable to find Python development headers
2012-03-29 9:01 ` Ian Campbell
@ 2012-03-29 13:59 ` Roger Pau Monné
0 siblings, 0 replies; 4+ messages in thread
From: Roger Pau Monné @ 2012-03-29 13:59 UTC (permalink / raw)
To: Ian Campbell
Cc: yang.z.zhang@intel.com, KUWAMURA Shin'ya,
xen-devel@lists.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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-03-29 13:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).