Richard W.M. Jones
2015-May-26 08:44 UTC
Re: [Libguestfs] supermin in Fedora Rawhide switched (again) to using dnf instead of yum
On Mon, May 25, 2015 at 10:22:35PM +0200, Kashyap Chamarthy wrote:> I just built `supermin` from source on my Fedora 22 machine, and somehow > it can't seem to detect RPM (but `supermin` from Rawhide detects it). > Exact error: > > supermin: could not detect package manager used by this system or > distro. > > which is coming from: supermin/src/package_handler.ml. > > Test > ---- > > Build `supermin` from source: > > $ git clone https://github.com/libguestfs/supermin.git > $ ./bootstrap > $ ./autogen.sh > $ ./configureI'm guessing that you don't have one of 'rpm-devel', 'yum-utils' or 'dnf' installed. What is the output from ./configure? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html
Kashyap Chamarthy
2015-May-26 08:59 UTC
Re: [Libguestfs] supermin in Fedora Rawhide switched (again) to using dnf instead of yum
On Tue, May 26, 2015 at 09:44:33AM +0100, Richard W.M. Jones wrote:> On Mon, May 25, 2015 at 10:22:35PM +0200, Kashyap Chamarthy wrote: > > I just built `supermin` from source on my Fedora 22 machine, and somehow > > it can't seem to detect RPM (but `supermin` from Rawhide detects it). > > Exact error: > > > > supermin: could not detect package manager used by this system or > > distro. > > > > which is coming from: supermin/src/package_handler.ml. > > > > Test > > ---- > > > > Build `supermin` from source: > > > > $ git clone https://github.com/libguestfs/supermin.git > > $ ./bootstrap > > $ ./autogen.sh > > $ ./configure > > I'm guessing that you don't have one of 'rpm-devel',I was missing this. Retrying with it.> 'yum-utils' or 'dnf' installed.I did have these, though: yum-utils-1.1.31-505.fc22.noarch dnf-1.0.0-1.fc22.noarch rpm-4.12.0.1-9.fc22.x86_64> What is the output from ./configure?https://kashyapc.fedorapeople.org/virt/temp/supermin-config.log>From here, it complains that the 'rpm' package is not found in in thePKG_CONFIG_PATH: [. . .] configure:15882: $PKG_CONFIG --exists --print-errors "rpm" Package rpm was not found in the pkg-config search path. Perhaps you should add the directory containing `rpm.pc' to the PKG_CONFIG_PATH environment variable No package 'rpm' found configure:15885: $? = 1 configure:15899: $PKG_CONFIG --exists --print-errors "rpm" Package rpm was not found in the pkg-config search path. Perhaps you should add the directory containing `rpm.pc' to the PKG_CONFIG_PATH environment variable No package 'rpm' found [. . .] -- /kashyap
Kashyap Chamarthy
2015-May-26 10:12 UTC
Re: [Libguestfs] supermin in Fedora Rawhide switched (again) to using dnf instead of yum
On Tue, May 26, 2015 at 10:59:19AM +0200, Kashyap Chamarthy wrote:> On Tue, May 26, 2015 at 09:44:33AM +0100, Richard W.M. Jones wrote: > > On Mon, May 25, 2015 at 10:22:35PM +0200, Kashyap Chamarthy wrote: > > > I just built `supermin` from source on my Fedora 22 machine, and somehow > > > it can't seem to detect RPM (but `supermin` from Rawhide detects it). > > > Exact error: > > > > > > supermin: could not detect package manager used by this system or > > > distro. > > > > > > which is coming from: supermin/src/package_handler.ml. > > > > > > Test > > > ---- > > > > > > Build `supermin` from source: > > > > > > $ git clone https://github.com/libguestfs/supermin.git > > > $ ./bootstrap > > > $ ./autogen.sh > > > $ ./configure > > > > I'm guessing that you don't have one of 'rpm-devel', > > I was missing this. Retrying with it.Yep -- 'rpm-devel' and 'zlib-static' (which was not pulled in by `dnf builddep supermin`, though) package did it (thanks Pino): Build `supermin: $ dnf install xz-static $ sudo dnf install rpm-devel -y $ ./configure $ make $ make check [. . .] # TOTAL: 8 # PASS: 8 [. . .] Check for rpm driver: $ ../src/supermin --list-drivers | grep fedora fedora/rpm detected Prepare and build the appliance using the existing script from source tree: $ ./build-basic-vm.sh $ cd basic-full-appliance/ Boot it: $ qemu-system-x86_64 -m 512 -kernel kernel \ -initrd initrd -serial mon:stdio \ -append 'console=ttyS0,115200,selinux=0' \ -drive file=root,format=raw,if=virtio \ -nographic -nodefconfig -nodefaults [. . .] bash-4.3# Thanks. -- /kashyap
Seemingly Similar Threads
- Re: supermin in Fedora Rawhide switched (again) to using dnf instead of yum
- Re: supermin in Fedora Rawhide switched (again) to using dnf instead of yum
- supermin in Fedora Rawhide switched (again) to using dnf instead of yum
- Re: build problem with libxl
- Re: build problem with libxl