<< Running JBoss on iPhone | Home | Running WebLogic Server 10g Release 3 on a Mac >>

Installing Apache 2.0.63

I've just updated my Apache 2.0 instance on my server. Keep in mind that it's always a good idea to keep your web server, JVM and JBoss versions up-to-date although I skipped Apache from 2.0.60 to 2.0.62. The version is now 2.0.63.

Here is a note for my future reference.

My configure options are as follows:

$./configure --prefix=${installdir}/apache2 --enable-deflate --enable-proxy --enable-proxy-http --enable-so --enable-shared=yes --enable-rewrite --enable-dav=yes --enable-ssl=static --with-mpm=worker --with-berkeley-db=${installdir}/db4.4  --enable-headers
now let's make it,
$ make
.
.
.
sendrecv.c:965:2: error: #error APR has detected sendfile on your system, but nobody has written a
sendrecv.c:966:2: error: #error version of it for APR yet. To get past this, either write apr_sendfile
sendrecv.c:967:2: error: #error or change APR_HAS_SENDFILE in apr.h to 0.
From certain version of Mac OSX(probably from the Leopard release), I'm getting the APR(Apache Portable Runtime) related error. Though I don't understand the exact meaning of the error, I know the solution. It's as simple as just modifying the APR_HAVE_SYS_SENDFILE_H in ./srclib/apr/include/apr.h from 1 to 0.
-#define APR_HAVE_SYS_SENDFILE_H  1
+#define APR_HAVE_SYS_SENDFILE_H  0

After that, make; make install finished without any problem.

$ make clean
$ make
$ make install

Tags :



Add a comment Send a TrackBack