Hongbin Lu
2014-Aug-09 22:18 UTC
[libvirt-users] Error when compiling libvirt 1.2.7 on CentOS 6.4
Hi, I was trying to follow this guide (http://libvirt.org/compiling.html) 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. $ sudo yum install gcc make gnutls-devel device-mapper-devel \ python-devel libnl-devel yajl-devel \ libxml2-devel libpciaccess-devel $ wget ftp://libvirt.org/libvirt/libvirt-1.2.7.tar.gz $ gunzip -c libvirt-1.2.7.tar.gz | tar xvf - $ cd libvirt-1.2.7/ $ ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-openvz=yes $ make ..... Making all in src make[2]: Entering directory `/home/ec2-user/libvirt-1.2.7/src' GEN libvirt_access.xml /bin/sh: -w: command not found make[2]: *** [libvirt_access.xml] Error 127 make[2]: Leaving directory `/home/ec2-user/libvirt-1.2.7/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/ec2-user/libvirt-1.2.7' make: *** [all] Error 2 $ make V=1 .......... /usr/bin/ld:libvirt.syms:3220: syntax error in VERSION script collect2: ld returned 1 exit status make[3]: *** [libvirt.la] Error 1 make[3]: Leaving directory `/home/ec2-user/libvirt-1.2.7/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/ec2-user/libvirt-1.2.7/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/ec2-user/libvirt-1.2.7' make: *** [all] Error 2
Jincheng Miao
2014-Aug-13 07:33 UTC
Re: [libvirt-users] Error when compiling libvirt 1.2.7 on CentOS 6.4
On 08/10/2014 06:18 AM, Hongbin Lu wrote:> Hi, > > I was trying to follow this guide (http://libvirt.org/compiling.html) > 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. > > $ sudo yum install gcc make gnutls-devel device-mapper-devel \ > python-devel libnl-devel yajl-devel \ > libxml2-devel libpciaccess-devel > $ wget ftp://libvirt.org/libvirt/libvirt-1.2.7.tar.gz > $ gunzip -c libvirt-1.2.7.tar.gz | tar xvf - > $ cd libvirt-1.2.7/ > $ ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc > --with-openvz=yes > $ make > ..... > Making all in src > make[2]: Entering directory `/home/ec2-user/libvirt-1.2.7/src' > GEN libvirt_access.xml > /bin/sh: -w: command not foundHere is the accident, why sh executes '-w' command. That should be: /usr/bin/perl -w ./rpc/gendispatch.pl --mode=aclapi \ remote REMOTE ./remote/remote_protocol.x > libvirt_access.xml have you installed perl? You could check it in config.log.> make[2]: *** [libvirt_access.xml] Error 127 > make[2]: Leaving directory `/home/ec2-user/libvirt-1.2.7/src' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/ec2-user/libvirt-1.2.7' > make: *** [all] Error 2 > > $ make V=1 > .......... > /usr/bin/ld:libvirt.syms:3220: syntax error in VERSION script > collect2: ld returned 1 exit status > make[3]: *** [libvirt.la <http://libvirt.la>] Error 1 > make[3]: Leaving directory `/home/ec2-user/libvirt-1.2.7/src' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/home/ec2-user/libvirt-1.2.7/src' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/ec2-user/libvirt-1.2.7' > make: *** [all] Error 2 > > > > > _______________________________________________ > libvirt-users mailing list > libvirt-users@redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-users
Hongbin Lu
2014-Aug-13 14:47 UTC
Re: [libvirt-users] Error when compiling libvirt 1.2.7 on CentOS 6.4
Thanks Jincheng, After installing perl, the error is resolved. Best regards, Hongbin On Wed, Aug 13, 2014 at 3:33 AM, Jincheng Miao <jmiao@redhat.com> wrote:> > On 08/10/2014 06:18 AM, Hongbin Lu wrote: > > Hi, > > I was trying to follow this guide (http://libvirt.org/compiling.html) 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. > > $ sudo yum install gcc make gnutls-devel device-mapper-devel \ > python-devel libnl-devel yajl-devel \ > libxml2-devel libpciaccess-devel > $ wget ftp://libvirt.org/libvirt/libvirt-1.2.7.tar.gz > $ gunzip -c libvirt-1.2.7.tar.gz | tar xvf - > $ cd libvirt-1.2.7/ > $ ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc > --with-openvz=yes > $ make > ..... > Making all in src > make[2]: Entering directory `/home/ec2-user/libvirt-1.2.7/src' > GEN libvirt_access.xml > /bin/sh: -w: command not found > > > Here is the accident, why sh executes '-w' command. > That should be: > /usr/bin/perl -w ./rpc/gendispatch.pl --mode=aclapi \ > remote REMOTE ./remote/remote_protocol.x > libvirt_access.xml > > have you installed perl? > > You could check it in config.log. > > make[2]: *** [libvirt_access.xml] Error 127 > make[2]: Leaving directory `/home/ec2-user/libvirt-1.2.7/src' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/ec2-user/libvirt-1.2.7' > make: *** [all] Error 2 > > $ make V=1 > .......... > /usr/bin/ld:libvirt.syms:3220: syntax error in VERSION script > collect2: ld returned 1 exit status > make[3]: *** [libvirt.la] Error 1 > make[3]: Leaving directory `/home/ec2-user/libvirt-1.2.7/src' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/home/ec2-user/libvirt-1.2.7/src' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/ec2-user/libvirt-1.2.7' > make: *** [all] Error 2 > > > > > _______________________________________________ > libvirt-users mailing listlibvirt-users@redhat.comhttps://www.redhat.com/mailman/listinfo/libvirt-users > > >
Eric Blake
2014-Aug-13 16:32 UTC
Re: [libvirt-users] Error when compiling libvirt 1.2.7 on CentOS 6.4
On 08/13/2014 01:33 AM, Jincheng Miao wrote:>> Making all in src >> make[2]: Entering directory `/home/ec2-user/libvirt-1.2.7/src' >> GEN libvirt_access.xml >> /bin/sh: -w: command not found > > Here is the accident, why sh executes '-w' command. > That should be: > /usr/bin/perl -w ./rpc/gendispatch.pl --mode=aclapi \ > remote REMOTE ./remote/remote_protocol.x > libvirt_access.xml > > have you installed perl?Hmm, we should make ./configure do a hard fail if ${PERL} is not found, rather than delaying the error until make time. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org