|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
Hi All,
I've been trying to compile Apache in a P3 700Mhz, 128 MB RAM, running RedHat 7.0. I started by uninstalling mod_ssl, mod_perl and Apache. Then I configured make with: env CC=gcc CFLAGS="-O2 -Wall" EXTRA_LIBS=-lgdbm ./configure --enable-module=most --enable-shared=max --with-layout=Apache --prefix=/usr/local/apache --with-port=80 It worked pretty well. Then I tried make, and got an error (after the usual compile messages): gcc -c -I../../os/unix -I../../include -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I. ./../lib/expat-lite -O2 -Wall `../../apaci` -fpic -DSHARED_MODULE mod_auth_dbm.c & & mv mod_auth_dbm.o mod_auth_dbm.lo mod_auth_dbm.c:84:18: ndbm.h: No such file or directory make[4]: *** [mod_auth_dbm.so] Error 1 make[3]: *** [all] Error 1 make[2]: *** [subdirs] Error 1 make[2]: Leaving directory `/root/apache_1.3.20/src' make[1]: *** [build-std] Error 2 make[1]: Leaving directory `/root/apache_1.3.20' make: *** [build] Error 2 The file ndbm.h file is in /usr/include/gdbm. I'm new to Linux and even newer to compiling in Linux. Any direction is VERY welcome! Thanks, Ed. |
|
#2
|
|||
|
|||
|
>> The file ndbm.h file is in /usr/include/gdbm
You don't need to compile Apache that way. The Configure script is smart enough to detect and locate gdbm automatically, if you choose to enable whatever non-default modules that rely on gdbm. To enable mod_auth_dbm (non-default module), you just need to append enable-module=auth_dbm and additionally append --disable-module=auth_db. (Don't enable auth_db and auth_dbm together). |
|
#3
|
|||
|
|||
|
Thanks FreeBSD.
I configured with this command: env CC=gcc CFLAGS="-O2 -Wall" ./configure --enable-module=most --disable-module=auth_dbm --enable-shared=max --with-layout=Apache --prefix=/usr/local/apache --with-port=80 It worked fine. Then make and make install worked fine, too. Now, the problem is the server doesn't start: [root@spongebob apache_1.3.20]# /usr/local/apache/bin/apachectl start Syntax error on line 221 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/mod_userdir.so into server: undefined symbol: ap_os_is_path_absolute /usr/local/apache/bin/apachectl start: httpd could not be started [root@spongebob apache_1.3.20]# Any ideas? Thanks again. Ed. |
|
#4
|
|||
|
|||
|
Do not set this env CC=gcc CFLAGS="-O2 -Wall" .
|
|
#5
|
|||
|
|||
|
Thanks FreeBSD. It works great!
Ed. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Problems Compiling Apache |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|