[libvirt] 0.7.5 errors in configure script

Hi, I am using Ubuntu 9.10 and downloaded and extracted libvirt.0.7.5. I have issued: ./configure --prefix=$HOME/usr --without-xen but I get: You must install device-mapper-devel/libdevmapper >= 1.0.0 to compile libvirt Below is a snippet of the final configure output: checking for showmount... no checking for pvcreate... no checking for vgcreate... no checking for lvcreate... no checking for pvremove... no checking for vgremove... no checking for lvremove... no checking for vgchange... no checking for vgscan... no checking for pvs... no checking for vgs... no checking for lvs... no checking for iscsiadm... no checking for DEVMAPPER... no checking libdevmapper.h usability... no checking libdevmapper.h presence... no checking for libdevmapper.h... no checking for dm_task_run in -ldevmapper... no configure: error: You must install device-mapper-devel/libdevmapper >= 1.0.0 to compile libvirt /dev/mapper exists on the system. Any help is appreciated. Thanks, - Avi

On Mon, Jan 18, 2010 at 05:04:26PM +0200, Avi Weit wrote:
Hi,
I am using Ubuntu 9.10 and downloaded and extracted libvirt.0.7.5. I have issued: ./configure --prefix=$HOME/usr --without-xen
but I get: You must install device-mapper-devel/libdevmapper >= 1.0.0 to compile libvirt
Below is a snippet of the final configure output:
checking for showmount... no checking for pvcreate... no checking for vgcreate... no checking for lvcreate... no checking for pvremove... no checking for vgremove... no checking for lvremove... no checking for vgchange... no checking for vgscan... no checking for pvs... no checking for vgs... no checking for lvs... no checking for iscsiadm... no checking for DEVMAPPER... no checking libdevmapper.h usability... no checking libdevmapper.h presence... no checking for libdevmapper.h... no checking for dm_task_run in -ldevmapper... no configure: error: You must install device-mapper-devel/libdevmapper >= 1.0.0 to compile libvirt
/dev/mapper exists on the system.
That is a device file created by the kernel/udev. What libvirt wants is the device mapper library, ie libdevmapper.so typically provided by a device-mapper-devel/libdevmapper package, or equivalent for your distro Regards, Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

checking for dm_task_run in -ldevmapper... no configure: error: You must install device-mapper-devel/libdevmapper
= 1.0.0 to compile libvirt
/dev/mapper exists on the system.
You need the *-devel version of those packages (they provide include files in particular). I think it is something like libdevmapper-devel. Note that the "dev" stands for "device", while the "devel" stands for "development files". You may get few other errors like this one, don't forget to install *-devel versions of the packages that they complain about. Frederic.

2010/1/18 Frédéric Grelot <fredericg_99@yahoo.fr>:
checking for dm_task_run in -ldevmapper... no configure: error: You must install device-mapper-devel/libdevmapper
= 1.0.0 to compile libvirt
/dev/mapper exists on the system.
You need the *-devel version of those packages (they provide include files in particular). I think it is something like libdevmapper-devel. Note that the "dev" stands for "device", while the "devel" stands for "development files".
You may get few other errors like this one, don't forget to install *-devel versions of the packages that they complain about.
Frederic.
On Fedora development packages end in -devel. On Debian/Ubuntu development packages end in -dev. The necessary package for Ubuntu is called: libdevmapper-dev Matthias

Matthias Bolte <matthias.bolte@googlemail.com> wrote on 18/01/2010 17:52:15:
Matthias Bolte <matthias.bolte@googlemail.com> 18/01/2010 17:52
To
Frédéric Grelot <fredericg_99@yahoo.fr>
cc
Avi Weit/Haifa/IBM@IBMIL, libvir-list@redhat.com
Subject
Re: [libvirt] 0.7.5 errors in configure script
2010/1/18 Frédéric Grelot <fredericg_99@yahoo.fr>:
checking for dm_task_run in -ldevmapper... no configure: error: You must install device-mapper-devel/libdevmapper
= 1.0.0 to compile libvirt
/dev/mapper exists on the system.
You need the *-devel version of those packages (they provide
include files in particular).
I think it is something like libdevmapper-devel. Note that the "dev" stands for "device", while the "devel" stands for "development files".
You may get few other errors like this one, don't forget to install *-devel versions of the packages that they complain about.
Frederic.
On Fedora development packages end in -devel. On Debian/Ubuntu development packages end in -dev. The necessary package for Ubuntu is called:
libdevmapper-dev
Matthias
Thanks Matthias, Frédéric! After installing package libdevmapper-dev for my Ubuntu box - configure competed successfully. Trying now to compile and install.. (make; make install). - Avi
participants (4)
-
Avi Weit
-
Daniel P. Berrange
-
Frédéric Grelot
-
Matthias Bolte