Archive for the ‘DirectAdmin’ Category.

Slight issues

I had this error when compiling Apache on my DirectAdmin box for ClamAV Mirror.

In file included from mod_rewrite.c:51:
mod_rewrite.h:91:18: ndbm.h: No such file or directory
mod_rewrite.c: In function `lookup_map_dbmfile’:
mod_rewrite.c:3035: error: `DBM’ undeclared (first use in this function)
mod_rewrite.c:3035: error: (Each undeclared identifier is reported only once
mod_rewrite.c:3035: error: for each function it appears in.)
mod_rewrite.c:3035: error: `dbmfp’ undeclared (first use in this function)
mod_rewrite.c:3036: error: `datum’ undeclared (first use in this function)
mod_rewrite.c:3036: error: syntax error before “dbmkey”
mod_rewrite.c:3044: error: `dbmkey’ undeclared (first use in this function)
mod_rewrite.c:3047: error: `dbmval’ undeclared (first use in this function)
make[4]: *** [mod_rewrite.so] Error 1
make[3]: *** [all] Error 1
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/usr/local/directadmin/custombuild/apache_1.3.39/src’
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/local/directadmin/custombuild/apache_1.3.39′
make: *** [build] Error 2

It is just a quick fix, I just install the following package 🙂

yum install gdbm-devel

All done. Compiling again now 🙂