Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Compile and install PHP extension for Mac OS X 10.8 Mountain Lion
# Scipt for installing extension for PHP 5.3.13 (default PHP for OS X 10.8 Mountain Lion)
mkdir /tmp/gettext
cd /tmp/gettext
curl --location --progress-bar | tar -zx
brew update
brew install gettext
cd /tmp/gettext/php-5.3.13/ext/gettext/
./configure --with-gettext=/usr/local/Cellar/gettext/
sudo cp modules/ /usr/lib/php/extensions/no-debug-non-zts-20090626/
cd ~ && rm -rf /tmp/gettext
echo "Don't forget to add '' to /etc/php.ini"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment