Re: [users@httpd] mod_rewrite can't find ndbm.h, though we have it

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



	Hiyas,

Just checked on a RHEL 4 AS, and it detected my gdbm installation, and "magically", used it to compile Apache 1.3.37.

I would sugest you to remove your "hand-made" gdbm installation, and install the default RedHat packages (try the following command: "yum install gdbm gdbm-devel").

	I used the following command to configure apache:

# ./configure --enable-module=rewrite --enable-shared=max

	And the configuration/compilation worked as expected:

Configuring for Apache, Version 1.3.37
...
 + adding selected modules
    o rewrite_module uses ConfigStart/End
 + using -lgdbm for DBM support
      enabling DBM support for mod_rewrite
...

...
gcc -c -I../../os/unix -I../../include -DLINUX=22 -DHAVE_SET_DUMPABLE -I/usr/include/gdbm -DUSE_HSREGEX `../../apaci` -fpic -DSHARED_MODULE mod_rewrite.c && mv mod_rewrite.o mod_rewrite.lo
gcc -shared  -o mod_rewrite.so mod_rewrite.lo
...

Regards,

Domingos.

ianevans@xxxxxxxxxxxxxx escreveu:
Trying to install mod_rewrite on 1.3.37. Running redhat enterprise.

I keep getting:

 /usr/local/apache/bin/apxs -cia mod_rewrite.c
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

I installed the gdbm from source and locate finds ndbm.h:

/usr/include/gdbm/ndbm.h

I've seen some other messages saying that installing gdbm should fix the
problem, but since I have and it hasn't...any ideas?

--
Domingos Parra Novo
Coordenador de Projetos
Terra Networks Brasil S/A
Tel: +55(51)3284-4275

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux