Having problems while try to install OAUTH with PECL in MAMP on mac OS lion

后端 未结 4 1808
别那么骄傲
别那么骄傲 2020-11-28 04:20

i am new to setting php servers, and i had go though other related post, seems like nobody have the same error as i have. I am using MAMP 2.0.2, and running PHP 5.3.6, and I

4条回答
  •  -上瘾入骨i
    2020-11-28 04:54

    I had the same problem whilst trying to pecl install -f ssh2 with MAMP.

    Here's how I fixed it:

    1. MAMP doesn't provide the source code archive for PHP 5.4.10 so download it from php.net
    2. Extract the source code archive to /Applications/MAMP/bin/php/php5.4.10/include/php
    3. Run ./configure to configure the source code for your platform (without this step the pecl install will fail looking for a bunch of header files)
    4. Retry your pecl install

    (much thanks to Stephen's answer which is pretty much the same)

提交回复
热议问题