php설치시 configure: error: ZLIB extension requires zlib >= 1.0.9 에러

리눅스/PHP|2015. 1. 16. 10:21
반응형

php 4.4버전대 설치시 발생한 에러

configure: error: ZLIB extension requires zlib >= 1.0.9

아래처럼 설치시 해결되었음.

./configure --prefix=/usr/local/php --with-apxs=/usr/local/apache/bin/apxs --with-zlib --with-gd --with-ttf --with-png --with-expat-dir=/usr --with-gmp --with-xml --with-language=korean --with-charset=euc_kr --disable-debug --disable-rpath --with-iconv --enable-safe-mode --enable-magic-quotes --enable-bcmath --enable-dio --enable-gd-native-ttf --enable-sysvsem --enable-sysvshm --enable-wddx --enable-pic --enable-inline-optimization --enable-mbstring --enable-mbregex --enable-mbstr-enc-trans --with-config-file- --enable-ftp --disable-debug --enable-track-vars=yes --with-jpeg-dir --with-freetype-dir --enable-gd-native-ttf --enable-dl --enable-gd-imgstrttf --enable-exif --enable-versioning

도중에 configure: error: Unable to locate gmp.h 에러가 난다면

yum -y install gmp* 후, 다시 설치해볼것.

반응형

댓글()