Hi,
Our RHEL6 machine default OS python version is 2.6.6 and also we have installed following
python versions:
[root@euca-10-254-18-174 rpmbuild_13210]$ rpm -qa | grep python
python-2.6.6-66.el6_8.x86_64
libvirt-python-0.10.2-62.el6_9.1.x86_6
python-devel-2.6.6-66.el6_8.x86_64
So we are trying to build libguestfs-1.32.10 with python 2.6.6 atleast.
But still the log is same like below:
checking for python... /usr/bin/python2.6
checking Python version... 2.6
checking for PYTHON... no
checking for PYTHON... no
checking Python prefix... /usr
checking for Python site-packages path... /usr/lib64/python2.6/site-packages
Please find below line which we are using in our SPEC:
PYTHON=/usr/bin/python2.6 ./configure --disable-appliance --disable-daemon
--without-libvirt --with-qemu="qemu-kvm qemu-system-x86_64 qemu"
--prefix=%{_prefix} --enable-python
I have tried a lot but no luck.
Could you please let me know that whether you are trying this libguestfs on any RHEL
machines .
if yes please provide some sample spec of libguestfs for RHEL machines.
Regards,
Abinaya sandhiya
-----Original Message-----
From: Richard W.M. Jones [mailto:rjones@redhat.com]
Sent: Monday, January 29, 2018 8:38 PM
To: Abinaya Sandhiya Manikandan (GIS) <abinaya.manikandan(a)wipro.com>
Cc: libguestfs(a)redhat.com
Subject: Re: [Libguestfs] python 3 bindings on libguestfs
** This mail has been sent from an external source **
The logs here:
checking for python... /opt/python/x86_64/3.1.1/bin/python3
checking Python version... 3.1
checking for PYTHON... no
checking for PYTHON... no
checking Python prefix... /opt/python/x86_64/3.1.1 checking for Python
site-packages path...
/opt/python/x86_64/3.1.1/lib/python3.1/site-packages
checking for Python extension suffix (PEP-3149)... .so checking for
PyCapsule_New in -lc... no checking for PyString_AsString in -lc... no
are generated by this code:
https://clicktime.symantec.com/a/1/20jQKuR48Iaz7qM7c72Ewa-TzVtjx7eH6Hhmcx...
As you can see from the output above you are missing all of the Python development
libraries (eg. ‘python3-devel’ on Fedora).
On my machine with Python 3.6.2 and the correct development libraries installed I see:
...
checking for python... /usr/bin/python3
checking Python version... 3.6
checking for PYTHON... yes
checking Python prefix... /usr
checking for Python site-packages path... /usr/lib64/python3.6/site-packages
checking for Python extension suffix (PEP-3149)... .cpython-36m-x86_64-linux-gnu.so
checking for PyCapsule_New in -lc... yes checking for PyString_AsString in -lc... no ...
Rich.
--
Richard Jones, Virtualization Group, Red Hat
https://clicktime.symantec.com/a/1/pbGjVmX_MV0No5eIvfDfHfOGlwgS3qHzvLmtIw...
Read my programming and virtualization blog:
https://clicktime.symantec.com/a/1/Q748QYQlOrpG_SFxGqzVPNDbEFzkHwm9hScaG-...
virt-df lists disk usage of guests without needing to install any software inside the
virtual machine. Supports Linux and Windows.
https://clicktime.symantec.com/a/1/nsJASd71EwZ9UJnYK2H5yvz81DfowBOXiZ2B4o...
______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit
http://www.symanteccloud.com
______________________________________________________________________
The information contained in this electronic message and any attachments to this message
are intended for the exclusive use of the addressee(s) and may contain proprietary,
confidential or privileged information. If you are not the intended recipient, you should
not disseminate, distribute or copy this e-mail. Please notify the sender immediately and
destroy all copies of this message and any attachments. WARNING: Computer viruses can be
transmitted via email. The recipient should check this email and any attachments for the
presence of viruses. The company accepts no liability for any damage caused by any virus
transmitted by this email.
www.wipro.com
______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit
http://www.symanteccloud.com
______________________________________________________________________