configure: error: You must install device-mapper-devel/libdevmapper >= 1.0.0 to compile libvirt

Asked by sajuptpm

Hi,

I am getting following error while trying to install libvirt 1.2 in ubuntu 12.04 LTS.

$ ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc

checking libdevmapper.h presence... no
checking for libdevmapper.h... no
configure: error: You must install device-mapper-devel/libdevmapper >= 1.0.0 to compile libvirt

I am following https://github.com/stackforge/inception/blob/master/bin/pre_install_libvirt.sh to install libvirt 1.2

i tried sudo apt-get install libdevmapper, but no luck.

$ sudo apt-get install libdevmapper
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libdevmapper1.02.1' instead of 'libdevmapper'
libdevmapper1.02.1 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Thomas Krüger
Solved:
Last query:
Last reply:
Revision history for this message
Best Thomas Krüger (thkrueger) said :
#1

You should try
sudo apt-get install libdevmapper-dev
in order to install the files for development.

Revision history for this message
sajuptpm (sajuptpm) said :
#2

Hi thkrueger,

I tried that. Here is the result.

$ sudo apt-get install libdevmapper-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libdevmapper-dev

Revision history for this message
sajuptpm (sajuptpm) said :
#3

Hi,

I have folowing entry in /etc/apt/apt.conf
Acquire::HTTP::Proxy "10.10.10.11:3128";

-------------
And apt-get update failing with following error

$ sudo apt-get update
Err http://us.archive.ubuntu.com precise Release.gpg
  Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument)

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

Is there no PPA for the version you desire?

Revision history for this message
sajuptpm (sajuptpm) said :
#5

Thanks Thomas Krüger, that solved my question.