Linux ETC

php-5.2.x 설치 옵션

2009.02.05 04:10

호스트웨이 조회 수:24393


 php-5.2.x 부터 몇가지 옵션이 변경되었다.

./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql
--with-apxs2=/usr/local/apache2/bin/apxs
--enable-sysvshm=yes --enable-sysvsem=yes --enable-debug=no
--with-ttf --with-png-dir=/usr --with-zlib-dir --with-jpeg-dir=/usr --with-gdbm=/usr --enable-ftp
--enable-mbstring --enable-sockets --enable-wddx --with-freetype-dir=/usr
--enable-bcmath --enable-mbregex --enable-exif --with-gd --enable-gd-native-ttf
--enable-calendar --with-openssl-dir=/usr --with-curl

위와 같이 옵션을 주면 기본적으로 필요한 모듈이 첨부되고 에러 없이 컴파일 된다.