Problems with compiling apache2 on Mac OS X Mountain Lion

后端 未结 10 1872
借酒劲吻你
借酒劲吻你 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:12

    Complete solution that allowed me to pass through:

    checking for gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc
    checking whether the C compiler works... no
    

    issue can be found here: http://mac-dev-env.patrickbougie.com/apache/

    The command are (some needs sudo su):

    cd /usr/local/src (mkdir /usr/local/srt if /usr/local/src doesnt exist)
    curl --remote-name http://mirror.csclub.uwaterloo.ca/apache/httpd/httpd-2.4.9.tar.gz
    tar -xzvf httpd-2.4.9.tar.gz
    rmhttpd-2.4.9.tar.gz
    cd httpd-2.4.9
    
    sudo xcode-select -switch /
    mkdir -p /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain/usr/bin (this might require sudo su)
    ln -s /usr/bin/cc /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain/usr/bin/cc (this might require sudo su)
    
    ./configure --prefix=/usr/local/apache-2.4.9
    make
    make install
    
    ln -s apache-2.4.9 /usr/local/apache
    

提交回复
热议问题