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
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
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 libraryPresumably 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,
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