Difference between revisions of "Device-mapper"
From CBLFS
Jump to navigationJump to search (→Multilib) |
|||
Line 15: | Line 15: | ||
Compile the package: | Compile the package: | ||
− | ./configure --mandir=/usr/share/man --enable-dmeventd --enable-pkgconfig --disable-selinux && | + | ./configure --mandir=/usr/share/man --enable-dmeventd \ |
+ | --enable-pkgconfig --disable-selinux && | ||
make | make | ||
− | Install the package | + | Install the package: |
make install | make install | ||
+ | |||
+ | Relocate libraries: | ||
+ | |||
+ | rm -v /lib/libdevmapper{,-event}.so && | ||
+ | ln -svf ../../lib/libdevmapper.so.{{Device-mapper-Version2}} /usr/lib/libdevmapper.so && | ||
+ | ln -svf ../../lib/libdevmapper-event.so.{{Device-mapper-Version2}} /usr/lib/libdevmapper-event.so && | ||
== Multilib == | == Multilib == | ||
Line 28: | Line 35: | ||
Compile the package: | Compile the package: | ||
− | CC="gcc ${BUILD32}" ./configure --mandir=/usr/share/man --enable-dmeventd --enable-pkgconfig --disable-selinux && | + | CC="gcc ${BUILD32}" ./configure --mandir=/usr/share/man \ |
+ | --enable-dmeventd --enable-pkgconfig --disable-selinux && | ||
make | make | ||
− | Install the package | + | Install the package: |
make install | make install | ||
− | Relocate libraries | + | Relocate libraries: |
− | rm /lib/libdevmapper{,-event}.so | + | rm -v /lib/libdevmapper{,-event}.so && |
− | ln -svf ../../lib/libdevmapper.so. | + | ln -svf ../../lib/libdevmapper.so.{{Device-mapper-Version2}} /usr/lib/libdevmapper.so && |
− | ln -svf ../../lib/libdevmapper-event.so. | + | ln -svf ../../lib/libdevmapper-event.so.{{Device-mapper-Version2}} /usr/lib/libdevmapper-event.so && |
=== N32 === | === N32 === | ||
Line 46: | Line 54: | ||
sed -i "/usrlibdir/s:/lib:&32:" configure && | sed -i "/usrlibdir/s:/lib:&32:" configure && | ||
− | CC="gcc ${BUILDN32}" ./configure --mandir=/usr/share/man --enable-dmeventd --libdir=/lib32 \ | + | CC="gcc ${BUILDN32}" ./configure --mandir=/usr/share/man \ |
+ | --enable-dmeventd --libdir=/lib32 \ | ||
--enable-pkgconfig --disable-selinux && | --enable-pkgconfig --disable-selinux && | ||
make | make | ||
− | Install the package | + | Install the package: |
make install | make install | ||
+ | |||
+ | Relocate libraries: | ||
+ | |||
+ | rm -v /lib32/libdevmapper{,-event}.so && | ||
+ | ln -svf ../../lib32/libdevmapper.so.{{Device-mapper-Version2}} /usr/lib32/libdevmapper.so && | ||
+ | ln -svf ../../lib32/libdevmapper-event.so.{{Device-mapper-Version2}} /usr/lib32/libdevmapper-event.so && | ||
=== 64Bit === | === 64Bit === | ||
Line 59: | Line 74: | ||
sed -i "/usrlibdir/s:/lib:&64:" configure && | sed -i "/usrlibdir/s:/lib:&64:" configure && | ||
− | CC="gcc ${BUILD64}" ./configure --libdir=/lib64 --mandir=/usr/share/man --enable-dmeventd \ | + | CC="gcc ${BUILD64}" ./configure --libdir=/lib64 \ |
+ | --mandir=/usr/share/man --enable-dmeventd \ | ||
--enable-pkgconfig --disable-selinux && | --enable-pkgconfig --disable-selinux && | ||
make | make | ||
− | Install the package | + | Install the package: |
make install | make install | ||
− | Relocate libraries | + | Relocate libraries: |
− | rm /lib64/libdevmapper{,-event}.so | + | rm -v /lib64/libdevmapper{,-event}.so && |
− | ln -svf ../../lib64/libdevmapper.so. | + | ln -svf ../../lib64/libdevmapper.so.{{Device-mapper-Version2}} /usr/lib64/libdevmapper.so && |
− | ln -svf ../../lib64/libdevmapper-event.so. | + | ln -svf ../../lib64/libdevmapper-event.so.{{Device-mapper-Version2}} /usr/lib64/libdevmapper-event.so && |
Revision as of 08:43, 20 July 2007
Download Source: | ftp://sources.redhat.com/pub/dm/device-mapper.1.02.28.tgz |
---|
Contents
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
Relocate libraries:
rm -v /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 &&
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 -v /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
Relocate libraries:
rm -v /lib32/libdevmapper{,-event}.so && ln -svf ../../lib32/libdevmapper.so.1.02 /usr/lib32/libdevmapper.so && ln -svf ../../lib32/libdevmapper-event.so.1.02 /usr/lib32/libdevmapper-event.so &&
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 -v /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 &&