리눅스 APM(apache+php+mysql) 소스설치시 각종 Error 및 해결 방법

작성자 : 서비님(https://dslee1.blogspot.kr/)

----------------------------------------------------------------------------------------
이 포스팅과 관련된 포스팅

Centos7(센트7)에서 apache+php+mysql (apm) 설치 및 구성 - 1


1. 내용

리눅스에서 apache+php+mysql(이하 APM) 을 yum 등으로 간편하게 설치를 할수있다. 또는 기본으로 설치가 되어있는 경우도 많이 볼수있다. 하지만 소스컴파일을 할 때보다는 성능을 향상을 기대하기 어려우며, 소스컴파일을 진행하면 커널버전에 상관없이 설치할수있는 장점이 있다.

오늘은 APM 설치시 각종 에러들을 발견할수있는데, 그 이유는 연관되는 라이브러리가 설치되어있지 않아 발생되는게 대부분이다.

아래는 대표적인 에러들의 리스트이며 Ctrl + f 단축키를 이용해서 쉽게 찾아볼수 있다.


2. 해결 방법


2-1 Mysql

Error 1)
checking for termcap functions library... configure: error: No curses/termcap library found
make: *** No targets specified and no makefile found.  Stop.
해결 방법
 yum -y install libtermcap-devel ncurses-devel 설치

Error 2)
/bin/rm: cannot remove `libtoolT': No such file or directory
해결 방법
mysql 소스파일 Directory에서 아래 진행
 autoreconf --force --install
 aclocal
 libtoolize --automake --force
 automake --force --add-missing

2-2. Apache

Error 1)
configure: error: ...No recognized SSL/TLS toolkit detected
해결 방법
yum –y install openssl-devel

2-3. PHP
Error 1)
Checking for pkg-config... /usr/bin/pkg-config
configure: error: Cannot find OpenSSL's <evp.h>
해결 방법
 yum –y install openssl-devel

Error 2)
Configure: error: xml2-config not found. Please check your libxml2 installation.
해결 방법
 yum –y install libxml2-devel

Error 3)
Configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/
해결 방법
 yum –y install curl-devel

Error 4)
Configure: error: libpng.(also) not found.
해결 방법
 yum –y install libpng-devel

Error 5)
Configure: error: Please reinstall the BZip2 distribution
해결 방법
 yum –y install bzip2-devel

Error 6)
Configure: error: libjpeg.(also) not found.
해결 방법
 yum –y install libjpeg-devel

Error 7)
Checking for unixODBC support... configure: error: ODBC header file '/usr/include/sqlext.h' not found!
해결 방법
 yum –y install unixODBC-devel

Error 8)
configure: error: DBA: Could not find necessary header file(s).
해결 방법
yum -y install gdbm-devel

Error 9)
Configure: error: Cannot find MySQL header files under /usr.
Note that the MySQL client library is not bundled anymore!
해결 방법
yum –y install mysql-devel

Error 10)
Configure: error: freetype.h not found.
해결 방법
yum -y install freetype-devel

Error 11)
Configure: error: Unable to locate gmp.h
해결 방법
yum -y install gmp-devel

Error 12)
Configure: error: Cannot find pspell
해결 방법
yum -y install pspell-devel

Error 13)
configure: error: not found. Please reinstall the expat distribution.
해결 방법
yum –y install expat-devel

Error 14)
Configure: error: Please reinstall the ncurses distribution
해결 방법
yum –y install ncurses-devel

Error 15)
Configure: error: snmp.h not found. Check your SNMP installation.
해결 방법
yum –y install net-snmp-devel