1.PHP에러 : configure: error: please reinstall the BZip2 distribution
해결방안)
# yum -y install bzip2-devel
2. PHP에러 : configure: error: DBA: could not find necessary header file(s).
해결방안)
# yum -y install gdbm-devel
혹은 configure 옵션 할 때
--with-imap=/usr/local/imap-2007f 로 변경
3. PHP에러 : configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation.
해결방안)
# yum -y install libc-client-devel libc-client
4. PHP에러 : make *** [ext/openssl/openssl.lo]오류 1
해결방안)
# make clean → make && make install
5. PHP에러 : configure: error: jpeglib.h not found.
해결방안)
# yum -y install libjpeg-devel
6. PHP에러 : CURL 에러
which: no dpkg-architecture in (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
./configure: line 23550: curl-dir: No such file or directory
checking for cURL 7.10.5 or greater... ./configure: line 23565: curl-config: command not found
configure: error: cURL version 7.10.5 or later is required to compile php with cURL support
현재 CURL 버전
# curl -V
curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.27.1 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz
해결방안)
# yum -y install curl-devel
7. PHP 에러 : configure: error: png.h not found.
해결방안)
# yum -y install libpng-devel
8. PHP에러 : configure: error: freetype-config not found.
해결방안)
# yum -y install freetype-devel
9. PHP에러 : configure: error: mcrypt.h not found. Please reinstall libmcrypt.
해결방안)
# yum -y install libmcrypt libmcrypt-devel
10. PHP에러 : configure: error: Please reinstall the iconv library.
해결방안)
iconv 소스설치
11. PHP 에러 : php-7.2.17/sapi/cli/php: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory
make: *** [ext/phar/phar.php] 오류 127
해결방안)
mysql 소스설치한 경우, /usr/local/mysql/lib 안에 libmysqlclient.so 파일이 있는지 확인 후
# echo "/usr/local/mysql/lib/" >> /etc/ld.so.conf
# ldconfig
12. PHP에러 : configure: error: Cannot find libtidy
해결방안)
# yum install libtidy libtidy-devel
13. PHP에러 : configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information
해결방안)
# yum -y install epel-release
# cd /usr/local/src
# wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
# yum -y install remi-release-7.rpm
# yum -y install libc-client uw-imap-devel uw-imap uw-imap-static
# ln -s /usr/lib64/libc-client.a /usr/lib/libc-client.a
14. PHP에러 : configure: error: Cannot find pspell
해결방안)
# yum install aspell-devel
15. PHP에러 : configure: error: Unable to locate gmp.h
해결방안)
# yum -y install gmp gmp-devel
'LINUX > WEB' 카테고리의 다른 글
PHP 모듈 추가 (0) | 2019.05.27 |
---|---|
NGINX 소스설치 (0) | 2019.05.27 |
Apache + PHP 에러사항 (0) | 2019.05.27 |
WORDPRESS 설치 (0) | 2019.05.27 |
PHP 7.2 소스설치 (0) | 2019.05.27 |