linux 下编译安装gd后php的探针总是不能检测到,以下是编译pnp,jpeg6,freetype ,gd,最后从新编译php后才算能够探测到gd.编译php后要从起apache
[@more@]# 编译png
./configure --prefix=/usr/local/png
# 编译jpeg6
./configure --with-jpeg=/usr/local/jpeg6 --with-png --with-zlib --with-freetype=/usr/local/freetype --with-xpm
# 编译freetype
./configure --prefix=/usr/local/freetype
# 编译 gd
./configure --prefix=/usr/local/gd --with-jpeg=/usr/local/jpeg6 --with-png=/usr/local/lib
--with-zlib=/usr/local/lib
--with-freetype=/usr/local/freetype
# 编译php
./configure --prefix=/usr/local/php5 --with-apxs2=/www/apache/bin/apxs
--with-mysql=/usr/local/mysql
--enable-ftp --enable-sockets --with-gd=/usr/local/gd
--enable-gd-native-ttf --with-ttf --enable-track-vars --enable-magic-quotes --with-iconv
--with-mbstring --enable-ftp --with-config-file-path=/usr/local/php5/etc
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/8806316/viewspace-1010516/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/8806316/viewspace-1010516/