On Wed, Feb 24, 2016 at 09:24:47PM +0200, noxdafox wrote:
On 23/02/16 10:09, Richard W.M. Jones wrote:
>On Mon, Feb 22, 2016 at 11:58:28PM +0200, noxdafox wrote:
>>Once fixed that and few other things I got stuck with this:
>>
>>SRCDIR=. LAYOUT=partitions ../../run --test ./make-fedora-img.pl
>>Can't locate loadable object for module Sys::Guestfs in @INC (@INC
>>contains: /home/noxdafox/development/libguestfs/perl/blib/lib
>>/home/noxdafox/development/libguestfs/perl/blib/arch
>>/home/noxdafox/development/libguestfs/perl/lib /etc/perl
>>/usr/local/lib/x86_64-linux-gnu/perl/5.22.1
>>/usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22
>>/usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22
>>/usr/share/perl/5.22 /usr/local/lib/site_perl
>>/usr/lib/x86_64-linux-gnu/perl-base .) at ./make-fedora-img.pl line
>>27.
>>Compilation failed in require at ./make-fedora-img.pl line 27.
>>
>>The module is looking for should be in
>>/home/noxdafox/development/libguestfs/perl/lib and it's included in
>>@INC.
>>
>>I'm on Debian Jessie.
>It must be a missing dependency. Did you run `apt-get build-dep libguestfs'?
>
>Rich.
>
I just noticed the mistake, I'm not using Debian Jessie but Stretch
(testing).
The missing dependency seems to be the package gfs2-utils which is
present in Debian Jessie and Debian Sid but not in Stretch.
# apt-get build-dep libguestfs
The following packages have unmet dependencies:
builddeps:libguestfs : Depends: gfs2-utils but it is not installable
Seems unlikely since gfs2-utils is an optional package, and has
nothing to do with the error.
The error might also be caused because we embed the highest API number
in perl/lib/Sys/Guestfs.pm (as $VERSION), which we shouldn't really
do. It means you may have to rerun ./configure && make after adding a
new API.
Anyway, try rerunning ./configure, doing make clean, etc.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages.
http://libguestfs.org