php 설치 에러 configure: error: mcrypt.h not found. Please reinstall libmcrypt.

  • 에러 :
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
  • 해결 :
다운로드 http://sourceforge.net/projects/mcrypt/files/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz
# tar xzf libmcrypt-2.5.8.tar.gz 
# cd libmcrypt-2.5.8
# ./configure
# make
# make install
# vi /etc/ld.so.conf
/usr/local/lib 추가
# ldconfig

PHP 설치 오류

  • configure: error: xml2-config not found. Please check your libxml2 installation.
    > yum install libxml*
  • configure: error: Please reinstall the libcurl distribution –
    > yum -y install curl curl-devel
  • configure: error: libpng.(a|so) not found.
  • configure: error: libpng.(a|so) not found.
    > yum install libjpeg-devel
    > yum install libpng-devel
    > ln-s /usr/lib64/libjpeg.so /usr/lib
    > ln-s /usr/lib64/libpng.so /usr/lib
  • configure: error: libXpm.(a|so) not found
    > yum install xorg-x11-devel