InstallingAboutUsOnOSX
This is work in progress. These instructions do not yet work.
See also InstallingAboutUsOnLinux
These are the steps to install a working copy of AboutUs on your local OSX machine. Installing a local copy of AboutUs is painful, expect to struggle and struggle. If you do make it through all of these steps you'll end up with the same development environment that we use as we're working on it.
Developer Tools
First you must install developer tools from Apple. Links and instructions needed' Also, install Fink. It makes a lot of the more linux specific stuff easier to deal with, mostly freetype [[1]]
phpMyAdmin
zlib, libpng, libjpeg
./configure --prefix=/www make clean make make install
gd
./configure --prefix=/www --with-freetype=/www --with-fontconfig=/www --with-jpeg=/www make clean make make install
terra:~ brandon$ otool /www/bin/gd2topng -L /www/bin/gd2topng: /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 18.0.0) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 22.0.0) /www/lib/libgd.2.dylib (compatibility version 3.0.0, current version 3.0.0) /usr/lib/libiconv.2.dylib (compatibility version 5.0.0, current version 5.0.0) /usr/X11R6/lib/libXpm.4.dylib (compatibility version 4.11.0, current version 4.11.0) /usr/X11R6/lib/libX11.6.dylib (compatibility version 6.2.0, current version 6.2.0) /www/lib/libjpeg.62.dylib (compatibility version 63.0.0, current version 63.0.0) /www/lib/libfontconfig.1.dylib (compatibility version 4.0.0, current version 4.0.0) /usr/local/lib/libexpat.1.dylib (compatibility version 7.0.0, current version 7.0.0) /www/lib/libfreetype.6.dylib (compatibility version 10.0.0, current version 10.15.0) /www/lib/libpng12.0.dylib (compatibility version 17.0.0, current version 17.0.0) /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.6)
php
mkdir -p /www/compile cd /www/compile wget http://us2.php.net/get/php-5.2.1.tar.bz2/from/us.php.net/mirror tar -jxvf php-5.2.1.tar.bz2 cd php-5.2.1 CFLAGS='-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -L/www/lib' \ LDFLAGS='-L/www/lib' \ ./configure \ --prefix=/www \ --enable-so \ --with-apxs2=/www/bin/apxs \ --with-mysql=/usr/local/mysql-debug-5.0.27-osx10.4-i686 \ --with-zlib \ --enable-soap \ --enable-gmp \ --enable-bcmath \ --with-gd \ --with-png \ --with-png-dir=/www \ --with-zlib-dir=/www \ --with-freetype-dir=/www make clean make make install
below is what jason uses, which uses Freetype from fink
'./configure' \ '--with-apxs2=/www/bin/apxs' \ '--enable-so' \ '--with-mysql=/usr/local/mysql' \ '--enable-mbstring' \ '--with-pgsql' \ '--with-zlib' \ '--enable-soap' \ '--enable-gmp' \ '--enable-bcmath' \ '--with-gd' \ '--with-png' \ '--with-png-dir=/www' \ '--with-freetype' \ '--with-freetype-dir=/sw/lib/freetype2' \ '--enable-gd-native-ttf' \ "$@"