Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to install the PHP OAuth extension in Snow Leopard, I'm using the bundled Apache Web server and PHP 5.3.2 by Apple, which is working just fine.

When I type in Terminal:

sudo pecl install oauth

oauth-1.0.0.tgz downloads fine, but then I get this error:

WARNING: channel "" has updated its protocols, use "pecl channel-update" to update
downloading oauth-1.0.0.tgz ...
Starting to download oauth-1.0.0.tgz (42,834 bytes)
............done: 42,834 bytes
6 source files, building
running: phpize
grep: /usr/include/php/main/php.h: No such file or directory
grep: /usr/include/php/Zend/zend_modules.h: No such file or directory
grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory
Configuring for:
PHP Api Version:
Zend Module Api No:
Zend Extension Api No:
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script.

ERROR: `phpize' failed

I really have no idea this means or how to fix it, please help!

share|improve this question
up vote 1 down vote accepted

To remind myself:

  1. Install all of Xcode
  2. Download the PHP source
  3. Go to source-dir./etc/
  4. Copy the /pcre/ dir. in to: /usr/include/php/ext/
  5. Copy pcre.h from /usr/include/php/ext/pcrelib/ in to: /usr/include/php/ext/
  6. sudo pecl install oauth
  7. Add to php.ini
share|improve this answer

This problem can be fixed by installing a newer version of pcre.

share|improve this answer
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – Michael Hampton Nov 26 '12 at 22:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.