CentOS5 Linux編譯PHP 報(bào) mysql configure failed 錯(cuò)誤解決辦法
先執(zhí)行
./configure --prefix=/usr/local/php? --with-mysql=/usr/local/mysql
?
再執(zhí)行
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs? --with-mysql=/usr/local/mysql --with-gd=/usr/local/gd2/ --with-curl --with-jpeg-dir=/usr/local/jpeg7 --with-freetype-dir=/usr/local/freetype/
?
即可,好像是第一次執(zhí)行不能包括GD庫--with-gd=/usr/local/gd2/ ,否則報(bào)錯(cuò)
?
?
這個(gè)錯(cuò)誤害我重編譯了無數(shù)次MySQL。。。
?