-
-
Save khoa-le/66b558c207c6667186d9 to your computer and use it in GitHub Desktop.
Install php extension on Mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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