Created
August 23, 2013 12:02
-
-
Save cvergne/6318584 to your computer and use it in GitHub Desktop.
Install intl extension to MAMP
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
#!/bin/bash | |
# get php source code | |
mkdir /Applications/MAMP/bin/php/php5.4.10/include | |
cd /Applications/MAMP/bin/php/php5.4.10/include | |
wget -O php-5.4.10.tar.gz http://us.php.net/get/php-5.4.10.tar.gz/from/this/mirror | |
tar xzf php-5.4.10.tar.gz | |
mv php-5.4.10 php | |
cd php | |
./configure | |
# install so | |
mkdir /tmp/intl && cd /tmp/intl | |
/Applications/MAMP/bin/php/php5.4.10/bin/pecl download intl | |
tar xvfz intl-3.0.0.tgz && cd intl-3.0.0 | |
/Applications/MAMP/bin/php/php5.4.10/bin/phpize | |
MACOSX_DEPLOYMENT_TARGET=10.8 CFLAGS='-O3 -fno-common -arch i386 -arch x86_64' LDFLAGS='-O3 -arch i386 -arch x86_64' CXXFLAGS='-O3 -fno-common -arch i386 -arch x86_64' ./configure --with-php-config=/Applications/MAMP/bin/php/php5.4.10/bin/php-config | |
make | |
# copy the so file | |
cp modules/intl.so /Applications/MAMP/bin/php/php5.4.10/lib/php/extensions/no-debug-non-zts-20100525/intl.so |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment