<div dir="ltr">Thanks Jincheng,<div><br></div><div>After installing perl, the error is resolved.</div><div><br></div><div>Best regards,</div><div>Hongbin</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Aug 13, 2014 at 3:33 AM, Jincheng Miao <span dir="ltr"><<a href="mailto:jmiao@redhat.com" target="_blank">jmiao@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"><div class="">
<br>
<div>On 08/10/2014 06:18 AM, Hongbin Lu
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Hi,</div>
<div><br>
</div>
<div>I was trying to follow this guide (<a href="http://libvirt.org/compiling.html" target="_blank">http://libvirt.org/compiling.html</a>)
to compile libvirt1.2.7 on CentOS6.4. There is an error on
executing "make". Below is the steps to reproduce and the
error messages. Any help is appreciated. Thanks.</div>
<div><br>
</div>
<div>
<div>$ sudo yum install gcc make gnutls-devel
device-mapper-devel \</div>
<div> python-devel libnl-devel yajl-devel \</div>
<div> libxml2-devel libpciaccess-devel</div>
</div>
<div>$ wget <a href="ftp://libvirt.org/libvirt/libvirt-1.2.7.tar.gz" target="_blank">ftp://libvirt.org/libvirt/libvirt-1.2.7.tar.gz</a></div>
<div>$ gunzip -c libvirt-1.2.7.tar.gz | tar xvf -</div>
<div>$ cd libvirt-1.2.7/</div>
<div>$ ./configure --prefix=/usr --localstatedir=/var
--sysconfdir=/etc --with-openvz=yes</div>
<div>$ make</div>
<div>.....</div>
<div>Making all in src</div>
<div>make[2]: Entering directory
`/home/ec2-user/libvirt-1.2.7/src'</div>
<div> GEN libvirt_access.xml</div>
<div>/bin/sh: -w: command not found</div>
</div>
</blockquote>
<br></div>
Here is the accident, why sh executes '-w' command.<br>
That should be:<br>
/usr/bin/perl -w ./rpc/<a href="http://gendispatch.pl" target="_blank">gendispatch.pl</a> --mode=aclapi \<br>
remote REMOTE ./remote/remote_protocol.x >
libvirt_access.xml<br>
<br>
have you installed perl?<br>
<br>
You could check it in config.log.<br>
<br>
<blockquote type="cite"><div class="">
<div dir="ltr">
<div>make[2]: *** [libvirt_access.xml] Error 127</div>
<div>make[2]: Leaving directory
`/home/ec2-user/libvirt-1.2.7/src'</div>
<div>make[1]: *** [all-recursive] Error 1</div>
<div>make[1]: Leaving directory `/home/ec2-user/libvirt-1.2.7'</div>
<div>make: *** [all] Error 2</div>
<div><br>
</div>
<div>$ make V=1</div>
<div>..........</div>
<div>
<div>/usr/bin/ld:libvirt.syms:3220: syntax error in VERSION
script</div>
<div>collect2: ld returned 1 exit status</div>
<div>make[3]: *** [<a href="http://libvirt.la" target="_blank">libvirt.la</a>] Error 1</div>
<div>make[3]: Leaving directory
`/home/ec2-user/libvirt-1.2.7/src'</div>
<div>make[2]: *** [all] Error 2</div>
<div>make[2]: Leaving directory
`/home/ec2-user/libvirt-1.2.7/src'</div>
<div>make[1]: *** [all-recursive] Error 1</div>
<div>make[1]: Leaving directory `/home/ec2-user/libvirt-1.2.7'</div>
<div>make: *** [all] Error 2</div>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div><pre>_______________________________________________
libvirt-users mailing list
<a href="mailto:libvirt-users@redhat.com" target="_blank">libvirt-users@redhat.com</a>
<a href="https://www.redhat.com/mailman/listinfo/libvirt-users" target="_blank">https://www.redhat.com/mailman/listinfo/libvirt-users</a></pre>
</blockquote>
<br>
</div>
</blockquote></div><br></div>