Live Brilliant

php 컴파일 성공 옵션(리눅스 64비트) 본문

개발은 핵찜이야/리눅스

php 컴파일 성공 옵션(리눅스 64비트)

주인정 2012. 4. 18. 10:12
1. libjpeg.(a|so) not found 에러발생시
> yum install libjpeg libjpeg-devel
> yum install gd gd-devel
> ln -s /usr/lib64/libjpeg.so /usr/lib/libjpeg.so
> ln -s /usr/lib64/libpng.so /usr/lib/libpng.so
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/usr/local/apache2/conf --with-mysql=/usr/local/mysql --enable-sigchild --enable-mbstring --with-kerberos enable-calendar --enable-ftp --enable-sockets --disable-debug --with-openssl --with-gd --with-zlib --with-png-dir/usr/lib --with-jpeg-dir=/usr --with-libxml-dir=/usr --enable-gd-native-ttf --with-freetype-dir=/usr --with-gettext --with-curl --with-mssql=/usr/local/freetds
> make
> make install
> cp php.ini-recommended /usr/local/apache2/conf/php.ini

 

Comments