Skip to content

Instantly share code, notes, and snippets.

@khoa-le
Last active October 21, 2015 04:26
Show Gist options
  • Save khoa-le/66b558c207c6667186d9 to your computer and use it in GitHub Desktop.
Save khoa-le/66b558c207c6667186d9 to your computer and use it in GitHub Desktop.
Install php extension on Mac
#Install mcrypt extension php
brew install autoconf mcrypt
#download source php
cd php/ext/mcrypt
/usr/local/Cellar/php55/5.5.30/bin/phpize
./configure
make
sudo make install
#Install intl extension php
brew link icu4c --force
cd php/ext/intl
/usr/local/Cellar/php55/5.5.30/bin/phpize
./configure
make
sudo make install
#Turn on pear and pecl php
cd /usr/lib/php
sudo php install-pear-nozlib.phar
#link to /usr/local/bin
ln -s /usr/local/Cellar/php55/5.5.30/bin/pear
ln -s /usr/local/Cellar/php55/5.5.30/bin/pecl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment