On 2013/10/29 5:21 PM, "Weilin Chang" <Weilin.Chang(a)huawei.com> wrote:
I tried to compile e2fsprogs from its source codes. The compilation
failed because db.h was missing. Does anyone compile the tool from its
source code before? Where does this file locate? Is it ok to use
different version of e2fsprogs than
the one provided in the luster release?
This is a really old version of e2fsprogs (over 3 years old). There are a
lot of bug fixes in e2fsprogs since 1.41.10 was released. You should use a
newer version from
http://downloads.whamcloud.com/public/e2fsprogs/latest/
for any new installations. In most cases, you can just use the compiled
RPMs.
If you want to build your own, you either need to install db4-devel or
disable
lfsck in order to build the Lustre e2fsprogs. You can't use the unpatched
e2fsprogs because it doesn't support features that Lustre uses in ldiskfs.
Cheers, Andreas
Thank you for your help.
Here were the error messages generated while compiling e2fsprogs:
making all in e2fsck
make[2]: Entering directory
`/usr/src/redhat/SOURCES/e2fsprogs-1.41.10.sun2/build/e2fsck'
COMPILE_ET prof_err.et
CC gen_crc32table
GEN32TABLE crc32table.h
CC ../../e2fsck/crc32.c
CC ../../e2fsck/dict.c
CC ../../e2fsck/unix.c
In file included from ../../e2fsck/unix.c:62:
../../e2fsck/lfsck.h:15:16: error: db.h: No such file or directory
Cheers, Andreas
--
Andreas Dilger
Lustre Software Architect
Intel High Performance Data Division