hyperhq / runv

Hypervisor-based Runtime for OCI
Apache License 2.0
828 stars 129 forks source link

Fail to install runv in a virtual machine #644

Closed allencloud closed 6 years ago

allencloud commented 6 years ago

Hi, All,

I failed to install runV on my virtual machine. Here is my error log:

root@ubuntu:/go/src/github.com/hyper/runv# ./autogen.sh

Generating build-system with:
  aclocal:  aclocal (GNU automake) 1.15
  autoconf:  autoconf (GNU Autoconf) 2.69
  automake:  automake (GNU automake) 1.15

type './configure' and 'make' to compile hyper.

root@ubuntu:/go/src/github.com/hyper/runv# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for ar... ar
checking the archiver (ar) interface... ar
checking for ranlib... ranlib
checking build system type... x86_64-pc-linux-gnu
checking for go... yes
checking host system type... x86_64-pc-linux-gnu
checking for vboxmanage... no
./configure: line 4436: syntax error near unexpected token `LIBVIRT,'
./configure: line 4436: `   PKG_CHECK_MODULES(LIBVIRT, libvirt >= $LIBVIRT_REQUIRED, , with_libvirt=no)'

Here is my env:

root@ubuntu:/go/src/github.com/hyper/runv# uname -a
Linux ubuntu 4.4.0-87-generic #110-Ubuntu SMP Tue Jul 18 12:55:35 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
root@ubuntu:/go/src/github.com/hyper/runv# cat /etc/issue
Ubuntu 16.04.3 LTS \n \l
purplegrape commented 6 years ago

it seems you need install dev package for libvirt. libvirt-dev (ubuntu) or libvirt-devel (redhat)