Where to find MAMP server components and Libraries

前端 未结 3 1846
情书的邮戳
情书的邮戳 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:13

    Got few tips from some existing posts related to this kind of issues. I found the component for php5.5.10 in http://us2.php.net/get/php-5.5.10.tar.gz/from/a/mirror

    Followed the steps below to install pecl_http on my MAMP on Mac OS 10.8:

    Install brew
    Install autoconf using brew brew install autoconf
    Download the source code for PHP 5.5.10 (or whatever version you are using) from php.net
    Extract the source code into /Applications/MAMP/bin/php/php5.5.10/include
    Rename the extracted file from "php-5.5.10" to "php"
    cd /Applications/MAMP/bin/php/php5.5.10/include/php
    Run ./configure
    Add extension=http.so to my php.ini file
    Restart MAMP
    

    All my extensions are installed.

    Special thanks to joshua.paling and user387049 for all the above information.

提交回复
热议问题