skmedia / php-extensions-mamp

compiled so extension files
51 stars 14 forks source link

Required Library not found #1

Open pluess opened 11 years ago

pluess commented 11 years ago

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:

 [501] : php

 Warning: PHP Startup: Unable to load dynamic library '/Applications/MAMP/bin/php/php5.3.14/lib/php/extensions/no-debug-non-zts-20090626/intl.so' - dlopen(/Applications/MAMP/bin/php/php5.3.14/lib/php/extensions/no-debug-non-zts-20090626/intl.so, 9): Library not loaded: /opt/local/lib/libicui18n.48.dylib
   Referenced from: /Applications/MAMP/bin/php/php5.3.14/lib/php/extensions/no-debug-non-zts-20090626/intl.so
   Reason: image not found in Unknown on line 0
skmedia commented 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
acmartinsalmeida commented 11 years ago

Thanks ! That's the right method

daslicht commented 11 years ago

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 ?

alexgenovese commented 11 years ago

I need intl.so compiled for Mountain Lion too! pls

daslicht commented 11 years ago

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

alexgenovese commented 11 years ago

thank you!! :)

daslicht commented 11 years ago

Do they work for you ?

Daandelange commented 11 years ago

Thanks daslicht, working perfectly for me! :D

daslicht commented 11 years ago

Thats nice ! Yeah !

elbertcastaneda commented 11 years ago

"daslicht" you are my god, really thank you very much, much

robertodormepoco commented 9 years ago

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!

daslicht commented 9 years ago

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 :)