Forum Moderators: phranque

Message Too Old, No Replies

Problems installing mod rewrite with apxs

         

ianevans

7:37 am on Nov 16, 2006 (gmt 0)

10+ Year Member



I'm having a problem installing mod_rewrite via apxs

I'm in:

/downloads/apache_1.3.37/src/modules/standard

and issued the command:

/usr/local/apache/bin/apxs -cia mod_rewrite.c

I get the following:

gcc -DLINUX=22 -DHAVE_SET_DUMPABLE -DMOD_SSL=208128 -DUSE_HSREGEX -DEAPI -fpic -DSHARED_MODULE -I/usr/local/apache/include -c mod_rewrite.c
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: `DBM' undeclared (first use in this function)
mod_rewrite.c:3035: (Each undeclared identifier is reported only once
mod_rewrite.c:3035: for each function it appears in.)
mod_rewrite.c:3035: `dbmfp' undeclared (first use in this function)
mod_rewrite.c:3036: `datum' undeclared (first use in this function)
mod_rewrite.c:3036: syntax error before "dbmkey"
mod_rewrite.c:3044: `dbmkey' undeclared (first use in this function)
mod_rewrite.c:3047: `dbmval' undeclared (first use in this function)
apxs:Break: Command failed with rc=1

Any idea how I get around this?

jdMorgan

3:18 pm on Nov 16, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> mod_rewrite.h:91:18: ndbm.h: No such file or directory

I haven't seen this problem before, but it looks like all of the errors are due to the missing ndbm.h file.

Carefully check the installation dependencies for this module; The RewriteMap function of mod_rewrite can use ndbm hash files, so support for ndbm will be required to install mod_rewrite.

Having never before seen this error, that's all I know about this.

Jim