PHP 컴파일

아파치 worker 컴파일하면서 같이 진행한 php 컴파일입니다.





 #!/bin/sh
#####################################
# Build Configure
#buildconf: autoconf version 2.13 (ok)
#buildconf: automake version 1.5 (ok)
#buildconf: libtool version 1.4.3 (ok)
#####################################
#rm configure
#rm buildmk.stamp
#./buildconf
#./configure –help | grep xecure
#./configure –help | grep sso


#####################################
# Clean
#####################################
rm config.cache
make clean
make -dist clean


#####################################
# Confiugre Make Make Install(DSO)
#####################################
./configure \
–with-apxs2=/usr/local/apache2/bin/apxs \
–with-mysql=/usr/bin \
–with-libdir=lib64 \
–with-freetype-dir \
–with-zlib-dir \
–with-jpeg-dir \
–with-gd \
–with-openssl \
–with-mime-magic \
–with-oci8=instantclient,/usr/lib/oracle/10.2.0.3/client64/lib \
–with-config-file-path=/usr/apache2/conf \
–disable-debug \
–with-xml \
–enable-soap \
–enable-sockets \
–enable-mbstring \
–enable-bcmath \


make
make install

PHP 컴파일 시 configure: error: Cannot find libmysqlclient under 오류

OS : RHEL 5.5
apache : worker

php 컴파일시 다음과 같은 오류 발생시

checking for specified location of the MySQL UNIX socket… no
checking for MySQL UNIX socket location… no
configure: error: Cannot find libmysqlclient under /usr.
Note that the MySQL client library is not bundled anymore!
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install’.  Stop.

–with-mysql=/usr/bin \
–with-libdir=lib64 \

설정후 재컴파일 하여 성공하였습니다.
상황에 따라 틀리겠지만 참고하면 좋을것같습니다.