Where to find MAMP server components and Libraries

前端 未结 3 1826
情书的邮戳
情书的邮戳 2021-01-05 09:30

I am trying to install pecl_http in MAMP php. I am getting the following errors.

grep: /Applications/MAMP/bin/php/php5.5.10/include/php/main/php.h: N

3条回答
  •  不知归路
    2021-01-05 10:08

    I've got this running with MAMP 3.2.1 on OS X 10.10.5 Yosemite. Here's the commands I ran:

    download the php source code: http://us2.php.net/get/php-5.6.7.tar.bz2/from/a/mirror

    go to the downloads folder

    cd ~/Downloads
    

    extract the tarball

    tar -xzvf ./php-5.6.7.tar.bz2
    

    rename the resulting folder to php:

    mv php-5.6.7 php
    

    move it

    mv php /Applications/MAMP/bin/php/php5.6.7/include/
    

    install the Xcode command line tools:

    xcode-select --install
    

    run configure and build something!

    cd /Applications/MAMP/bin/php/php5.6.7/include/php
    ./configure
    pecl install uploadprogress
    

    Thanks to:

    Can't phpize or configure an extension in OS X 10.9 Mavericks

    and

    How to fix, 'PHP' make, in Mac OS X (10.9.4)?

提交回复
热议问题