Thanks for the Reply Matthias.<br><br>The  
 ./configure --with-python=/opt/Python2.7  worked. <br><br>But when i do make I go this error related with sax parser.<br><br><br><br>make[3]: Entering directory `/root/libvirt-0.8.4/python'<br>/opt/Python-2.7//bin/python ./generator.py .<br>
Traceback (most recent call last):<br>  File "./generator.py", line 1447, in <module><br>    if buildStubs() < 0:<br>  File "./generator.py", line 567, in buildStubs<br>    (parser, target)  = getparser()<br>
  File "./generator.py", line 35, in getparser<br>    parser = xml.sax.make_parser()<br>  File "/opt/Python-2.7/lib/python2.7/site-packages/_xmlplus/sax/sax2exts.py", line 37, in make_parser<br>    return XMLParserFactory.make_parser(parser_list)<br>
  File "/opt/Python-2.7/lib/python2.7/site-packages/_xmlplus/sax/saxexts.py", line 75, in make_parser<br>    sys.modules[parser_name].create_parser = _create_parser<br>KeyError: 'xml.sax.drivers2.drv_pyexpat'<br>
make[3]: *** [generated.stamp] Error 1<br>make[3]: Leaving directory `/root/libvirt-0.8.4/python'<br>make[2]: *** [all-recursive] Error 1<br>make[2]: Leaving directory `/root/libvirt-0.8.4/python'<br>make[1]: *** [all-recursive] Error 1<br>
make[1]: Leaving directory `/root/libvirt-0.8.4'<br>make: *** [all] Error 2<br><br>Thanks<br>Vipul<br><br><div class="gmail_quote">On Wed, Jan 19, 2011 at 6:25 PM, Matthias Bolte <span dir="ltr"><<a href="mailto:matthias.bolte@googlemail.com">matthias.bolte@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">2011/1/19 vipul borikar <<a href="mailto:vipulcell@gmail.com">vipulcell@gmail.com</a>>:<br>

<div><div></div><div class="h5">> Hello,<br>
>           I want to source compile the libvirt 0.8.4 with its Python<br>
> bindings.<br>
><br>
> I have python 2.4 rpm installed but i dont use it. I use Python 2.7 source<br>
> compiled version.<br>
><br>
> So when i compile libvirt it produces bindings for Python 2.4 which is<br>
> obvious  choice since it is rpm.<br>
><br>
> So how should i make it point to Python 2.7 so that it produces bindings for<br>
> it.  Installed path of Python 2.7 is /opt/Python2.7.<br>
><br>
> Please Guide me.<br>
<br>
</div></div>You can try to run<br>
<br>
  ./configure --with-python=/opt/Python2.7<br>
<br>
assuming that there is /opt/Python2.7/bin/python.<br>
<br>
Another possibility is to specify the Python binary per environment variable<br>
<br>
  PYTHON=/opt/Python2.7/bin/python ./configure<br>
<br>
This will probably work but I'm not entirely sure as this is an<br>
uncommon configuration.<br>
<font color="#888888"><br>
Matthias<br>
</font></blockquote></div><br>