Hi,
I'm trying to install Apache web server on Mac OSX 10.6.8. On my first attempt with ./configure, I was informed that my apr version was too old. So I downloaded apr and apr-util, and as instructed by the Apache INSTALL doc, I upacked those files and moved their directories to httpd-2.4.3/srclib/apr and httpd-2.4.3/srclib/apr-util:
Then the Apache INSTALL doc said to run configure like this:Code:~/Downloads/httpd-2.4.3/srclib$ ls Makefile Makefile.in apr apr-util
But I got the error:Code:~/Downloads/httpd-2.4.3 $ ./configure --with-included-apr
So I looked at the Apache installation docs here:Code:configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/
http://httpd.apache.org/docs/current/install.html
which say:
So I downloaded pcre and installed pcre with ./configure, make, make install, which seemed to install pcre correctly. But when I tried to run ./configure for Apache, and Apache couldn't find pcre. So next I tried:REQUIREMENTS
....
....
Perl-Compatible Regular Expressions Library (PCRE)
This library is required but not longer bundled with httpd. Download the source code from http://www.pcre.org, or install a Port or Package. If your build system can't find the pcre-config script installed by the PCRE build, point to it using the --with-pcre parameter. On some platforms, you may have to install the corresponding -dev package to allow httpd to build against your installed copy of PCRE.
and this time ./configure seemed to end normally.Code:~/Downloads/httpd-2.4.3$ ./configure --with-included-apr --with-pcre=../pcre-8.32/pcre-config
On to make:
But make ends with pcre errors:Code:~/Downloads/httpd-2.4.3$ make
Any ideas what went wrong or what I should try next? The Apache install web page says:Code:... ... /Downloads/httpd-2.4.3/modules/ldap -I/Users/7stud/Downloads/httpd-2.4.3/modules/loggers -I/Users/7stud/Downloads/httpd-2.4.3/modules/lua -I/Users/7stud/Downloads/httpd-2.4.3/modules/proxy -I/Users/7stud/Downloads/httpd-2.4.3/modules/session -I/Users/7stud/Downloads/httpd-2.4.3/modules/ssl -I/Users/7stud/Downloads/httpd-2.4.3/modules/test -I/Users/7stud/Downloads/httpd-2.4.3/server -I/Users/7stud/Downloads/httpd-2.4.3/modules/arch/unix -I/Users/7stud/Downloads/httpd-2.4.3/modules/dav/main -I/Users/7stud/Downloads/httpd-2.4.3/modules/generators -I/Users/7stud/Downloads/httpd-2.4.3/modules/mappers -prefer-non-pic -static -c util_pcre.c && touch util_pcre.lo util_pcre.c:48:18: error: pcre.h: No such file or directory util_pcre.c: In function 'ap_regfree': util_pcre.c:103: error: 'pcre_free' undeclared (first use in this function) util_pcre.c:103: error: (Each undeclared identifier is reported only once util_pcre.c:103: error: for each function it appears in.) util_pcre.c: In function 'ap_regcomp': util_pcre.c:129: error: 'PCRE_CASELESS' undeclared (first use in this function) util_pcre.c:131: error: 'PCRE_MULTILINE' undeclared (first use in this function) util_pcre.c:133: error: 'PCRE_DOTALL' undeclared (first use in this function) util_pcre.c:136: warning: implicit declaration of function 'pcre_compile' util_pcre.c:136: warning: assignment makes pointer from integer without a cast util_pcre.c:142: warning: implicit declaration of function 'pcre_fullinfo' util_pcre.c:142: error: expected ')' before 'pcre' util_pcre.c:142: warning: type defaults to 'int' in declaration of 'type name' util_pcre.c:142: warning: cast from pointer to integer of different size util_pcre.c:143: error: 'PCRE_INFO_CAPTURECOUNT' undeclared (first use in this function) util_pcre.c: In function 'ap_regexec_len': util_pcre.c:180: error: 'PCRE_NOTBOL' undeclared (first use in this function) util_pcre.c:182: error: 'PCRE_NOTEOL' undeclared (first use in this function) util_pcre.c:198: warning: implicit declaration of function 'pcre_exec' util_pcre.c:198: error: expected ')' before 'pcre' util_pcre.c:198: warning: type defaults to 'int' in declaration of 'type name' util_pcre.c:198: warning: cast from pointer to integer of different size util_pcre.c:221: error: 'PCRE_ERROR_NOMATCH' undeclared (first use in this function) util_pcre.c:223: error: 'PCRE_ERROR_NULL' undeclared (first use in this function) util_pcre.c:225: error: 'PCRE_ERROR_BADOPTION' undeclared (first use in this function) util_pcre.c:227: error: 'PCRE_ERROR_BADMAGIC' undeclared (first use in this function) util_pcre.c:229: error: 'PCRE_ERROR_UNKNOWN_NODE' undeclared (first use in this function) util_pcre.c:231: error: 'PCRE_ERROR_NOMEMORY' undeclared (first use in this function) make[2]: *** [util_pcre.lo] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive] Error 1
But I can't find any information on where "the corresponding -dev package" can be downloaded from.On some platforms, you may have to install the corresponding -dev package to allow httpd to build against your installed copy of PCRE.
Thanks.



Reply With Quote



Bookmarks