Open pluess opened 11 years ago
mmm, think it's best you try to compile it yourself, here are the instructions:
# get php source code
mkdir /Applications/MAMP/bin/php/php5.3.14/include
cd /Applications/MAMP/bin/php/php5.3.14/include
wget -O php-5.3.14.tar.gz http://us.php.net/get/php-5.3.14.tar.gz/from/this/mirror
tar xzf php-5.3.14.tar.gz
mv php-5.3.14 php
cd php
./configure
# install so
mkdir /tmp/intl && cd /tmp/intl
/Applications/MAMP/bin/php/php5.3.14/bin/pecl download intl
tar xvfz intl-2.0.1.tgz && cd intl-2.0.1
/Applications/MAMP/bin/php/php5.3.14/bin/phpize
MACOSX_DEPLOYMENT_TARGET=10.6 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.3.14/bin/php-config
make
# copy the so file
cp modules/intl.so /Applications/MAMP/bin/php/php5.3.14/lib/php/extensions/no-debug-non-zts-20090626/intl.so
Thanks ! That's the right method
I am stuck at /Applications/MAMP/bin/php/php5.3.14/bin/phpize: Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script.
Anyone like to uplaod a compiled intl.so for MountainLion please ?
I need intl.so compiled for Mountain Lion too! pls
Hello, I have uploaded my working modules (10.8.2, PHP 5.4.4) here: http://www.datafilehost.com/download-dcac64fd.html
Inclusiove xdebug 2.2.1
thank you!! :)
Do they work for you ?
Thanks daslicht, working perfectly for me! :D
Thats nice ! Yeah !
"daslicht" you are my god, really thank you very much, much
worked like a charm, i've just had to add a config parameter to ./configure to point to the installed ICU (--with-icu-dir) version (using Homebrew)
MACOSX_DEPLOYMENT_TARGET=10.6 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 --with-icu-dir=/usr/local/Cellar/icu4c/53.1/
thank you!
Another option is just to use the osx built in webserver and configure it with : https://clickontyler.com/virtualhostx/ This makes managing PHP much easier since you can just install anything with brew :)
Just downloading the .so file looks promissing, compared to installing and compiling a lot of stuff.
Unfortunately it's not working for me. It looks that the intl.so is depending on anothter file: