Recompile PHP 5.3.3 and friends on Mac OSX 10.6 64bit
MySQL
PHP 5.3.3
ICONV 1.3.1
Freetype 2.4.4
Readline 6.1
sudo mkdir ~/src sudo mv /usr/libexec/apache2/libphp5.so /usr/libexec/apache2/libphp5.apple.so sudo mv /etc/php.ini /etc/php.ini.bak
Build and Install MySQL 5.1.51
//Configure and Make MySQL sudo tar xvzf mysql-5.1.51.tar.gz -C ~/src cd ~/src/mysql-5.1.51 CFLAGS='-arch x86_64' CCFLAGS='-arch x86_64' CXXFLAGS='-arch x86_64' ./configure --prefix=/usr/local/mysql \ --with-extra-charsets=complex \ --enable-thread-safe-client \ --enable-local-infile --enable-shared \ --with-plugins=innobase make sudo make install
ICONV 1.13.1
curl http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz | tar zx sudo tar xvzf libiconv-1.13.1.tar.gz -C ~/src cd ~/src/libiconv-1.13.1/ CFLAGS='-arch x86_64' CCFLAGS='-arch x86_64' CXXFLAGS='-arch x86_64' ./configure make sudo make install
Readline 6.1
curl ftp://ftp.cwru.edu/pub/bash/readline-6.1.tar.gz | tar xvzf -C ~/src cd ~/src/readline-6.1 CFLAGS='-arch x86_64' CCFLAGS='-arch x86_64' CXXFLAGS='-arch x86_64' ./configure make sudo make install
Freetype 2.4.4
cd ~/src wget http://download.savannah.gnu.org/releases/freetype/freetype-2.4.4.tar.gz tar xvzf freetype-2.4.4.tar.gz cd freetype-2.4.4/ sudo CFLAGS='-arch x86_64' CCFLAGS='-arch x86_64' CXXFLAGS='-arch x86_64' ./configure sudo make sudo make install
PHP 5.3.3
//Configure and Make/Install PHP 5.3.3 curl -L http://ca2.php.net/get/php-5.3.3.tar.bz2/from/this/mirror sudo tar xvzf php-5.3.3.tar.bz2 -C ~/src cd ~/src/php-5.3.3 curl http://www.php.net/~scoates/patches/php-5.3.1-Makefile.global-iconv.patch | patch -p0 CFLAGS='-arch x86_64' CCFLAGS='-arch x86_64' CXXFLAGS='-arch x86_64' ./configure \ --prefix=/usr/local \ --mandir=/usr/share/man \ --with-apxs2=/usr/sbin/apxs \ --with-ldap=/usr \ --with-ldap-sasl=/usr \ --infodir=/usr/share/info \ --enable-calendar \ --with-kerberos=/usr \ --enable-cli \ --with-zlib=/usr \ --with-zlib-dir=/usr \ --with-bz2=/usr \ --enable-exif \ --enable-ftp \ --enable-mbstring \ --enable-mbregex \ --with-pcre-regex=/usr/local \ --enable-soap \ --enable-sockets \ --with-iodbc=/usr \ --with-curl=/usr \ --with-config-file-path=/etc \ --sysconfdir=/private/etc \ --enable-sysvmsg \ --enable-sysvsem \ --enable-sysvshm \ --enable-shmop \ --enable-gd-native-ttf \ --with-snmp=/usr \ --enable-bcmath \ --enable-zend-multibyte \ --with-openssl=/usr \ --with-xmlrpc \ --with-xsl=/usr \ --with-mysql=mysqlnd \ --with-mysqli=mysqlnd \ --with-pdo-mysql=mysqlnd \ --with-mysql-sock=/var/mysql/mysql.sock \ --without-pear \ --with-libxml-dir=/usr \ --with-gd \ --with-iconv-dir=/usr \ --with-jpeg-dir=/usr/local \ --with-png-dir=/usr/local \ --with-freetype-dir=/usr/local \ --with-mcrypt=/usr/local \ --with-readline=/usr/local \ --enable-zip
xDebug 2.1.0
sudo tar xvzf xdebug-2.1.0.tar.gz -C ~/src/ cd ~/src/xdebug-2.1.0 phpize CFLAGS='-arch x86_64' CCFLAGS='-arch x86_64' CXXFLAGS='-arch x86_64' ./configure sudo make sudo cp modules/xdebug.so /usr/lib/php/extensions/no-debug-non-zts-20090626 sudo vi /etc/php.ini // Find the dynamic extensions section /Dynamic Extensions // Add This under Dynamic Extensions zend_extension=/usr/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so xdebug.default_enable = On xdebug.collect_params = 4 xdebug.trace_format = 1 xdebug.show_local_vars = On xdebug.dump_globals = On xdebug.show_exception_trace = On xdebug.collect_assignments = 1















