<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <div class="moz-cite-prefix">On 08/10/2014 06:18 AM, Hongbin Lu
      wrote:<br>
    </div>
    <blockquote
cite="mid:CALRTmusnvUNi3WK_QbkCd8o3Z+7YWLpRrxMr17YSsd16z-uJyg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Hi,</div>
        <div><br>
        </div>
        <div>I was trying to follow this guide (<a
            moz-do-not-send="true"
            href="http://libvirt.org/compiling.html">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 moz-do-not-send="true"
            href="ftp://libvirt.org/libvirt/libvirt-1.2.7.tar.gz">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>
    Here is the accident, why sh executes '-w' command.<br>
    That should be:<br>
    /usr/bin/perl -w ./rpc/gendispatch.pl --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
cite="mid:CALRTmusnvUNi3WK_QbkCd8o3Z+7YWLpRrxMr17YSsd16z-uJyg@mail.gmail.com"
      type="cite">
      <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 moz-do-not-send="true"
              href="http://libvirt.la">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 class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
libvirt-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/libvirt-users">https://www.redhat.com/mailman/listinfo/libvirt-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>