Device-mapper

From CBLFS
Revision as of 04:14, 20 July 2007 by Gab (talk | contribs) (Multilib)
Jump to navigationJump to search
Download Source: ftp://sources.redhat.com/pub/dm/device-mapper.1.02.28.tgz

Introduction to Device-mapper

Project Homepage: Unknown

Dependencies

Non-Multilib

Compile the package:

./configure --mandir=/usr/share/man --enable-dmeventd --enable-pkgconfig --disable-selinux &&
make

Install the package

make install

Multilib

32Bit

Compile the package:

CC="gcc ${BUILD32}" ./configure --mandir=/usr/share/man --enable-dmeventd --enable-pkgconfig --disable-selinux &&
make

Install the package

make install

Relocate libraries

rm /lib/libdevmapper{,-event}.so
ln -svf ../../lib/libdevmapper.so.1.02 /usr/lib/libdevmapper.so
ln -svf ../../lib/libdevmapper-event.so.1.02 /usr/lib/libdevmapper-event.so

N32

Compile the package:

sed -i "/usrlibdir/s:/lib:&32:" configure && 
CC="gcc ${BUILDN32}" ./configure --mandir=/usr/share/man --enable-dmeventd --libdir=/lib32 \
    --enable-pkgconfig --disable-selinux &&
make

Install the package

make install

64Bit

Compile the package:

sed -i "/usrlibdir/s:/lib:&64:" configure && 
CC="gcc ${BUILD64}" ./configure --libdir=/lib64 --mandir=/usr/share/man --enable-dmeventd \
    --enable-pkgconfig --disable-selinux &&
make

Install the package

make install

Relocate libraries

rm /lib64/libdevmapper{,-event}.so
ln -svf ../../lib64/libdevmapper.so.1.02 /usr/lib64/libdevmapper.so
ln -svf ../../lib64/libdevmapper-event.so.1.02 /usr/lib64/libdevmapper-event.so