All of lore.kernel.org
 help / color / mirror / Atom feed
* Compiling Xen error on RedHat8.0
@ 2019-05-24  5:28 ` Chen, Farrah
  0 siblings, 0 replies; 10+ messages in thread
From: Chen, Farrah @ 2019-05-24  5:28 UTC (permalink / raw)
  To: xen-devel; +Cc: Hao, Xudong

Hi,

I met some python related issues when building Xen on RedHat8.0.
On RedHat8.0, the default python version is python3, and I found Xen has some python2 codes, so I tried to build xen using python2.
On RedHat8.0, no "python", just "python2" and "python3":

ls /usr/bin/python*
/usr/bin/python2    /usr/bin/python2.7-config  /usr/bin/python3    /usr/bin/python3.6-config  /usr/bin/python3.6m-config         /usr/bin/python3-config
/usr/bin/python2.7  /usr/bin/python2-config    /usr/bin/python3.6  /usr/bin/python3.6m        /usr/bin/python3.6m-x86_64-config

So I created a soft link "python" to "python2":

ll /usr/bin/python
lrwxrwxrwx 1 root root 16 May 24 13:08 /usr/bin/python -> /usr/bin/python2

Then I tried to build xen:

cd xen
./configure --enable-ovmf
.........
checking for unistd.h... yes
checking for python-config... no
checking Python.h usability... yes
checking Python.h presence... yes
checking for Python.h... yes
checking for PyArg_ParseTuple... no
configure: error: Unable to find a suitable python development library
configure: error: ./configure failed for tools

If I use python3(create a soft link "python" to "python3" ), it reported syntax error.

checking for unistd.h... yes
checking for python-config... no
  File "<string>", line 1
    import distutils.sysconfig;         print "-I" + distutils.sysconfig.get_config_var("INCLUDEPY")
                                                 ^
SyntaxError: invalid syntax
checking Python.h usability... no
checking Python.h presence... no
checking for Python.h... no
configure: error: Unable to find Python development headers
configure: error: ./configure failed for tools

To resolve "Unable to find a suitable python development library", I installed python2-devel*, python2-lib*, python3-devel*, python3-lib*, python2-six, python3-six, but this error still exists.
In RedHat7, these packages are called "python-devel*, python-lib*", but in RedHat8, these packages don't exists, RedHat8 has only "python2-devel*, python2-lib*, python3-devel*, python3-lib*", maybe Xen codes cannot identify them.

Do you have any advice on building Xen on RedHat8? Thanks a lot!



Thanks,
Fan


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-05-27  1:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-24  5:28 Compiling Xen error on RedHat8.0 Chen, Farrah
2019-05-24  5:28 ` [Xen-devel] " Chen, Farrah
2019-05-24  8:15 ` M A Young
2019-05-24  8:15   ` [Xen-devel] " M A Young
2019-05-27  1:27   ` Chen, Farrah
2019-05-27  1:27     ` [Xen-devel] " Chen, Farrah
2019-05-24 10:40 ` Anthony PERARD
2019-05-24 10:40   ` [Xen-devel] " Anthony PERARD
2019-05-27  1:43   ` Chen, Farrah
2019-05-27  1:43     ` [Xen-devel] " Chen, Farrah

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.