Search code examples
macosapacheosx-lion

Installing Apache on a mac (Lion) : "Did not find prce-config script at" error


I am trying to install Apache (by compilation)on my mac Lion.

Every time, I try to compile pcre, I get these two errors :

configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/

or

"Did not find prce-config script at"

I know I have this pcre-config file.

(I put http-2.4.1 and pcre-8.30 in Documents / Tried another location in MyUsername/Test/ >> same result >> it didn't work either).

Any help would be greatly appreciated.

Thanks.

Edit :

I copied http-2.4.1 and pcre-8.30 in "/" then I cded to /pcre-8.30

then I issued ./configure >> Got no error.

then I cded /http-2.4.1

then I issued ./configure --prefix=/usr/local/apache_2.2. --with-pcre=/pcre-8.30

Got 1 error configure: error: Did not find pcre-config script at /pcre-8.30

I do not understand what "Install prefix .................. : /usr/local" means (in the pcre-8.30 configuration summary). I can't see any pcre file in this directory.


Solution

  • I got apache 2.4.1 to configure by doing the following (note i am running lion v 10.7.3)

    1. I downloaded pcre and ran (Note: by default pcre will install into /usr/local)

      $ ./configure
      $ make
      $ make install
      
    2. setup httpd-2.4.1 with the following command

       $./configure --prefix=/usr/local --with-pcre=/usr/local
       $ make
       $ make install
      
    3. Test

       $ usr/local/bin/apachectl start
      

    This appeared to work for me hopefully it works for you