[code language=”bash”]
LDFLAGS=’-lfreetype’ CFLAGS="-O3 -I/usr/include/freetype2" CXXFLAGS="-O3 -I/usr/include/freetype2" ./configure \
–with-apxs2=/usr/local/httpd24/bin/apxs –prefix=/usr/local/php –with-zlib –with-gd \
–enable-mbstring –with-mysql=/usr/local/mysql –with-mysqli=/usr/local/mysql/bin/mysql_config\
–with-pdo-mysql=/usr/local/mysql –with-config-file-path=/usr/local/php –with-iconv –with-libxml-dir –with-png-dir \
–with-freetype-dir –with-openssl –with-curl
[/code]
依赖项: