LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Compiling cryptsetup 1.0.7 (http://www.linuxquestions.org/questions/linux-software-2/compiling-cryptsetup-1-0-7-a-747450/)

Radikll 08-13-2009 11:26 PM

Compiling cryptsetup 1.0.7
 
Hey, I've been trying to compile cryptsetup for a few hours now. I want to compile it myself because I don't trust the one in the repository. I figured out most of the errors, but now I have one I just can't solve.

Here's the error and the last few lines:
Code:

root@ingsoc:/usr/local/src/cryptsetup-1.0.7# ./configure --enable-libdevmapper
...
checking for libgcrypt-config... /usr/local/bin/libgcrypt-config
checking for LIBGCRYPT - version >= 1.1.42... yes (1.4.4)
checking whether to build libgcrypt module... yes
checking for sepol_bool_set in -lsepol... no
checking for is_selinux_enabled in -lselinux... no
checking for library containing pthread_mutex_lock... -lpthread
checking for dm_task_set_name in -ldevmapper... no
checking libdevmapper.h usability... no
checking libdevmapper.h presence... no
checking for libdevmapper.h... no
checking whether to build libdevmapper module... no
configure: error: Unable to build libdevmapper plugin, see messages above
root@ingsoc:/usr/local/src/cryptsetup-1.0.7#

For anyone else trying to compile cryptsetup you need the following packages:
e2fsprogs -- (libs) after make install do make install-libs
popt
libgcrypt
libgpg-error
gettext

Can anyone help me?

TB0ne 08-14-2009 10:26 PM

Quote:

Originally Posted by Radikll (Post 3642759)
Hey, I've been trying to compile cryptsetup for a few hours now. I want to compile it myself because I don't trust the one in the repository. I figured out most of the errors, but now I have one I just can't solve.

Here's the error and the last few lines:
Code:

root@ingsoc:/usr/local/src/cryptsetup-1.0.7# ./configure --enable-libdevmapper
...
checking for libgcrypt-config... /usr/local/bin/libgcrypt-config
checking for LIBGCRYPT - version >= 1.1.42... yes (1.4.4)
checking whether to build libgcrypt module... yes
checking for sepol_bool_set in -lsepol... no
checking for is_selinux_enabled in -lselinux... no
checking for library containing pthread_mutex_lock... -lpthread
checking for dm_task_set_name in -ldevmapper... no
checking libdevmapper.h usability... no
checking libdevmapper.h presence... no
checking for libdevmapper.h... no
checking whether to build libdevmapper module... no
configure: error: Unable to build libdevmapper plugin, see messages above
root@ingsoc:/usr/local/src/cryptsetup-1.0.7#

For anyone else trying to compile cryptsetup you need the following packages:
e2fsprogs -- (libs) after make install do make install-libs
popt
libgcrypt
libgpg-error
gettext

Can anyone help me?

You don't say what version/distro of Linux you're on, but you need to install the libdevmapper-devel libraries. The error tells you which file you're missing, and if you go to http://rpm.pbone.net, and search for that file name, it'll return the package name.

From there, you can either download/install manually, or do it through online repos.


All times are GMT -5. The time now is 01:25 PM.