Monthly Archives: December 2012

Problems compiling PHP 5.3.19 on Mountain Lion

I had to add EXTRA_CFLAGS = -lstdc++ -lresolv to Makefile when trying to compile PHP 5.3.19 with: ./configure –prefix=/usr/local –mandir=/usr/share/man –infodir=/usr/share/info –sysconfdir=/private/etc –enable-cli –with-config-file-path=/usr/local/php/etc –with-libxml-dir=/usr –enable-xml –enable-exif –enable-ftp –with-gd –with-jpeg-dir=/usr/local/lib –with-png-dir=/usr/local/lib –enable-gd-native-ttf –with-imap=/usr/local –with-imap-ssl –enable-magic-quotes –enable-mbstring –enable-mbregex –enable-json –with-mysql=mysqlnd –with-mysqli=mysqlnd … Continue reading

Posted in mac, php | 2 Comments