Posts from ‘php’


A quick little tidbit that may help someone in their travels:

I was looking to install the PECL oauth package on my mac development machine. Since it is running XAMPP and not compiling from the source I was a little worried I would run into a few issues — and I did. While trying to install the oauth package I ran into an error:

oauth error: expected '{' at end of input
make: *** [oauth.lo] Error 1
ERROR: `make' failed

After reading a few items online it looked like there could be an issue with phpsize. Looking into XAMPP phpsize is not included by default. Taking a somewhat ill advised route I installed mac ports and attempted to port install php5-devel. As it began to compile I realized the error in my way: it was porting php5 as well!

To finally fix the issue: I hopped onto the Apache Friends XAMPP page to take another look, and before my eyes I saw the XAMPP mac “Developer Package.” After downloading and installing the .pkg I attempted to run pecl install oauth again and it was smooth sailing.

Still having issues? You may have to build the extension yourself. @sumardi wrote a great article on how to do this at: