先用mac port安装了libjpeg libpng libfreetype libxpm libiconv
mysql 位于 /usr/local/mysql
安装gd之前又把libjpeg libpng libfreetype用源码编译装到了/usr/local
gd的configure选项:
MACOSX_DEPLOYMENT_TARGET=10.6 CFLAGS="-arch x86_64 -g -Os -pipe -no-cpp-precomp" CCFLAGS="-arch x86_64 -g -Os -pipe" CXXFLAGS="-arch x86_64 -g -Os -pipe" LDFLAGS="-arch x86_64 -bind_at_load" ./configure --enable-shared --prefix=/usr
MACOSX_DEPLOYMENT_TARGET=10.6 CFLAGS=" -arch x86_64 -g -Os -pipe -no-cpp-precomp" CCFLAGS=" -arch x86_64 -g -Os -pipe" CXXFLAGS=" -arch x86_64 -g -Os -pipe" LDFLAGS=" -arch x86_64 -bind_at_load" /
./configure --prefix=/usr /
--with-gd=/usr/local /
--with-jpeg-dir=/opt/local/lib /
--with-png-dir=/opt/local /
--with-freetype-dir=/opt/local /
--with-xpm-dir=/opt/l