Apache installation on Mac (Lion): "Prce-config script at not found" error

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

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

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

or

"No prce-config script found in"

I know that I have this pcre-config file.

(I put http-2.4.1 and pcre-8.30 in Documents / I tried another place in MyUsername / Test / → the same result → it didn’t work either).

Any help would be greatly appreciated.

Thank.

Edit:

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

after which I released. / configure → There were no errors.

then i cded / http-2.4.1

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

1 configure: : pcre-config script /pcre -8.30

, " ..................:/usr/local" ( pcre-8.30). pcre .

+5
4

apache 2.4.1 , ( , lion v 10.7.3)

  • pcre (: pcre /usr/local )

    $ ./configure
    $ make
    $ make install
    
  • setup httpd-2.4.1

     $./configure --prefix=/usr/local --with-pcre=/usr/local
     $ make
     $ make install
    
  •  $ usr/local/bin/apachectl start
    

, , , , .

+7

Homebrew http://mxcl.github.com/homebrew/,

brew install pcre

.

./configure.

+2

, PCRE . :

Installing PCRE Nginx requires PCRE - Perl Compatible Regular Expressions to build, I used PCRE version 8.13. In the terminal, run:

sudo curl -OL h ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.13.tar.gz > /usr/local/src/pcre-8.13.tar.gz
sudo mkdir -p /usr/local/src
cd /usr/local/src
tar xvzf pcre-8.13.tar.gz
cd pcre-8.13
./configure --prefix=/usr/local
make
sudo make install
cd ..

Here is what I am trying ...

+1
source

I still could not get it to work using the jfleong answer. I came across fink which you can download here http://www.finkproject.org/download/srcdist.php

After everything was installed, I ran:

$ fink install pcre

And then continued installing apache and just using

$ ./configure

Without any flags. After I did all this, I was finally able to finish the installation. Hope this helps!

0
source

All Articles