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
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 installableSeems 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
Apply the attached patch, followed by doing: make -C perl clean ./configure make Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top
On 25/02/16 10:54, Richard W.M. Jones wrote:> Apply the attached patch, followed by doing: > > make -C perl clean > ./configure > make > > Rich. >I applied the patch, unfortunately the issue is still present. This is what I get if I run interactive Perl console. DB<1> use Sys::Guestfs Can't locate loadable object for module Sys::Guestfs in @INC (@INC contains: /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 (eval 8)[/usr/share/perl/5.22/perl5db.pl:737] line 2. Compilation failed in require at (eval 8)[/usr/share/perl/5.22/perl5db.pl:737] line 2. at (eval 8)[/usr/share/perl/5.22/perl5db.pl:737] line 2. main::BEGIN() called at (eval 8)[/usr/share/perl/5.22/perl5db.pl:737] line 2 eval {...} called at (eval 8)[/usr/share/perl/5.22/perl5db.pl:737] line 2 eval 'no strict; ($@, $!, $^E, $,, $/, $\\, $^W) = @DB::saved;package main; $^D = $^D | $DB::db_stop; use Sys::Guestfs; ' called at /usr/share/perl/5.22/perl5db.pl line 737 DB::eval called at /usr/share/perl/5.22/perl5db.pl line 3110 DB::DB called at -e line 1 BEGIN failed--compilation aborted at (eval 8)[/usr/share/perl/5.22/perl5db.pl:737] line 2. at (eval 8)[/usr/share/perl/5.22/perl5db.pl:737] line 2. eval 'no strict; ($@, $!, $^E, $,, $/, $\\, $^W) = @DB::saved;package main; $^D = $^D | $DB::db_stop; use Sys::Guestfs; ' called at /usr/share/perl/5.22/perl5db.pl line 737 DB::eval called at /usr/share/perl/5.22/perl5db.pl line 3110 DB::DB called at -e line 1 I have no experience with Perl. Is it failing evaluating the module? I checked the module and it's contained in the path /home/noxdafox/development/libguestfs/perl/lib which is present in @INC.