Problems with compiling apache2 on Mac OS X Mountain Lion

后端 未结 10 1849
借酒劲吻你
借酒劲吻你 2020-12-23 21:34

While trying to compile the latest version of the apache web server(2.4.3) on my Mac (10.8) I run into a problem. When I run the ./configure command I got the following outp

10条回答
  •  清酒与你
    2020-12-23 22:34

    I'm on OSX Mavericks and was trying to compile Apache 2.2.24 and ran into this error. I saw from other answers that the problem was with apxr and thus APR returning the wrong location for gcc. Apple supplies this and the Apache config was using the Apple supplied one.

    On a whim, I looked and saw that the configure script has an option to ignore the system supplied APRs and use its own.

    So I did this:

    ./configure --with-included-apr
    

    And it got past the configure step and compiled without errors.

提交回复
热议问题