Hello Daniel,<br><br>Thanks for you help. I installed xen-devel rpms and manage to make, make check and make install libvirt.<br><br>Then I tried to test it by trying the simple python script given on the libvirt site.<br>
<a href="http://libvirt.org/python.html">http://libvirt.org/python.html</a><br><br>It failed and complained about not finding libvirt module. I guess Python was unable to locate it. I thought "make install" for libvirt would have taken care of it, but seems not to.
<br>How could I make Python aware of my libvirt module? Do I need to create an envoirnmental variable or else?<br><br>====<br>Error:<br><span style="font-style: italic;">Traceback (most recent call last):</span><br style="font-style: italic;">
<span style="font-style: italic;">  File "testLibvirt.py", line 1, in ?</span><br style="font-style: italic;"><span style="font-style: italic;">    import libvirt</span><br style="font-style: italic;"><span style="font-style: italic;">
ImportError: No module named libvirt</span><br>====<br><br>Any help would be much appreciated!<br><br>Cheers<br>Omer<br><br><div><span class="gmail_quote">On 12/11/06, <b class="gmail_sendername">Daniel Veillard</b> <<a href="mailto:veillard@redhat.com">
veillard@redhat.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Mon, Dec 11, 2006 at 05:22:41PM +0100, Omer Khalid wrote:
<br>> Hi,<br>><br>> I am trying to build libvirt on *SL4 (kernal = 2.6.12.6-xen3_12.1_rhel4.1).<br>> I tried both snapshot tar ball and the cvs checked out version. With the tar<br>> ball, after running the ./configure script, make file is created. But make
<br>> file fails and complains the following:<br>><br>> libvirt.c:24:16: xs.h: No such file or directory<br>> In file included from libvirt.c:28:<br>> xen_internal.h:15:26: xen/dom0_ops.h: No such file or directory
<br><br>  You don't have the include files for development against Xen installed.<br>Ask your sysadmin to install them (or whoever maintains your SL4 version).<br>I already answered something similar last week, reposting the same bits
<br>won't help. Check with the system administrator to get the development<br>files for Xen installed on your system. That system is specific to CERN,<br>apparently, that's why you should ask for support locally ! We can't
<br>debug that !<br><br>Daniel<br><br>--<br>Red Hat Virtualization group <a href="http://redhat.com/virtualization/">http://redhat.com/virtualization/</a><br>Daniel Veillard      | virtualization library  <a href="http://libvirt.org/">
http://libvirt.org/</a><br><a href="mailto:veillard@redhat.com">veillard@redhat.com</a>  | libxml GNOME XML XSLT toolkit  <a href="http://xmlsoft.org/">http://xmlsoft.org/</a><br><a href="http://veillard.com/">http://veillard.com/
</a> | Rpmfind RPM search engine  <a href="http://rpmfind.net/">http://rpmfind.net/</a><br></blockquote></div><br><br clear="all"><br>-- <br>---------------------------------------------------------------<br>                                                                             
<br>CERN – European Organization for Nuclear Research<br>Information Technology Department<br>CH-1211 Geneva 23 <br><br>Phone: +41 (0) 22 767 7996<br>Fax:     +41 (0) 22 767 4900<br>E-mail : <a href="mailto:Omer.Khalid@cern.ch">
Omer.Khalid@cern.ch</a><br>Homepage: <a href="http://cern.ch/Omer.Khalid">http://cern.ch/Omer.Khalid</a>