Installing PHP OAuth in MAMP environment

mamp, oauth, php

Solution

After upgrading to MAMP 2.0 for PHP 5.2.17 I followed these steps to install the oauth module through pecl

- Download MAMP Server components and libraries Specifically you want php-5.2.17.tar.gz

- Uncompress php-5.2.17.tar.gz to /Applications/MAMP/bin/php/php5.2.17/include/php

Run configure against the downloaded php. Do not build it.

cd /Applications/MAMP/bin/php/php5.2.17/include/php; ./configure

Remove broken pear config:

mv /Applications/MAMP/bin/php/php5.2.17/conf/pear.conf /Applications/MAMP/bin/php/php5.2.17/conf/pear.conf.bak

Compile oauth

cd /Applications/MAMP/bin/php/php5.2.17/bin; ./pecl install oauth

Update php.ini and add extension=oauth.so This can be done in MAMP under File -> Edit Template -> PHP -> PHP 5.2.17 php.ini

Problem

I have tried following ALL tutorials out there on getting PHP OAuth extension installed under the MAMP environment, but can't get it to load for some reason. I am using MAMP 1.9 with PHP 5.3.2 The most recent tutorial I was following was: http://lifeofadev.com/2011/03/09/mac-os-x-installing-oauth-so-into-xampp-mamp/ Does anyone else have experience with getting this to work? Thanks! Dennis

Original source