Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I know this is old but I found this question while having a similar issue.</p> <blockquote> <p>MAMP doesn’t ship with a bunch of the PHP sources </p> </blockquote> <ul> <li>Download MAMP components and configure</li> <li>URL: <a href="http://www.mamp.info/en/downloads/index.html" rel="noreferrer">http://www.mamp.info/en/downloads/index.html</a> (i.e. MAMP_components_2.0.2.zip)</li> <li>Unpack your MAMP_components_2.0.2.zip</li> <li>Identify your php-5.x.x.tar.gz file (where 5.x.x is your version of PHP)</li> <li>If you are using php > 5.4.10 then download the sources from <a href="http://php.net/releases" rel="noreferrer">http://php.net/releases</a> as they are not in the MAMP components download (credit pulkitsinghal in comments)</li> <li><p>Create directory for your PHP sources: </p> <p><code>mkdir -vp /Applications/MAMP/bin/php5/include</code></p></li> <li><p>Untar php-5.x.x.tar.gz into /Applications/MAMP/bin/php/php5.*/include or /Applications/MAMP/bin/php5/ include:</p> <p><code>tar zxvf php-5.x.x.tar.gz -C /Applications/MAMP/bin/php/php5.?.??/include</code></p></li> <li><p>Rename your php-5.x.x directory to php (without the version numbering):</p> <p><code>mv /Applications/MAMP/bin/php/php5.2.17/include/php-5.?.?? /Applications/ MAMP/bin/php/php5.2.17/include/php</code></p></li> <li><p>Configure PHP sources (it’ll create necessary files i.e. zend_config.h, tsrm_config.h, etc.):</p> <p><code>cd /Applications/MAMP/bin/php/php5.?.??/include/php</code></p> <p><code>./configure</code></p></li> </ul> <p>The process was for another fix but this resolved the issues with php.h not being found</p> <p>Credit to where I found the answers - :</p> <p><a href="http://thomashunter.name/blog/getting-the-php-mongodb-driver-installed-with-mamp-on-os-x/" rel="noreferrer">Thomas Hunter Blog</a></p> <p><a href="http://thomashunter.name/blog/getting-the-php-mongodb-driver-installed-with-mamp-on-os-x/" rel="noreferrer">Google Doc detailing process</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload