공부하는 소담아빠

PHP configure 에러 본문

웹_서버_개발/PHP

PHP configure 에러

소담아빠 2017. 8. 23. 14:46
반응형

./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/usr/local/apache2/conf --with-mysql-sock=/tmp --with-mysqli --with-pdo-mysql=shared --with-openssl --with-pcre-regex --with-zlib --with-bz2 --with-curl --with-gdbm --with-db4=/usr --with-dbm --with-pcre-dir=/usr --with-openssl-dir=/usr --with-libxml-dir=/usr --with-jpeg-dir=/usr/lib64 --with-gd --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --with-gettext --with-gmp --with-mhash --with-imap=/usr/local/imap-2007f --with-imap-ssl --with-kerberos --with-icu-dir=/usr --with-ldap --with-ldap-sasl --with-libmbfl --with-onig --with-mcrypt --with-libedit --with-readline --with-tidy --with-libexpat-dir=/usr --with-xmlrpc --with-xsl --with-pear --with-pic --with-libdir=lib64 --enable-bcmath --enable-calendar --enable-exif --enable-ftp --enable-pcntl --enable-intl --enable-mbstring --enable-shmop --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --enable-zip --enable-mysqlnd --enable-dba=shared --enable-dom --enable-mbregex --enable-inline-optimization --enable-sigchild --enable-soap --enable-maintainer-zts --enable-opcache=no


후임이 php7 소스컴파일 중 겪은 에러를 해결해주기로 했다.

서치능력이 본인의 생각보다 좋지 않은 친구다.

CentOS 7 + php 7.. 생각보다 신규에러가 많다.


configure: error: DBA: Could not find necessary header file(s)

일반적으로

# yum install gdbm gdbm-devel

이면 해결되지만 계속해서 나는 경우

# yum install libdb-devel

해준다.


configure: error: DBA: Could not find necessary library.

# ln -s /usr/lib64/libgdbm_compat.so /usr/local/lib64/libdbm.so


configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.

configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation.


# cd /usr/local/src

# wget https://www.mirrorservice.org/sites/ftp.cac.washington.edu/imap/imap-2007f.tar.gz 

# tar zxvf imap-2007f.tar.gz

# cd imap-2007f/src/c-client

# cp *.h /usr/local/include/

# cd /usr/local/src/imap-2007f

# make lr5 PASSWDTYPE=std SSLTYPE=unix.nopwd EXTRACFLAGS=-fPIC IP=4 

# mkdir /usr/local/imap-2007f/

# mkdir /usr/local/imap-2007f/include/

# mkdir /usr/local/imap-2007f/lib64/

# cp c-client/*.h /usr/local/imap-2007f/include/

# cp c-client/*.c /usr/local/imap-2007f/lib64/

# cp c-client/c-client.a /usr/local/imap-2007f/lib64/libc-client.a


lib => lib64가 중요하다.


checking for DB4 major version... configure: error: Header contains different version.

# yum install db4 db4-devel

없다고 뜰 경우

# yum install epel-release

# yum install db4 db4-devel


configure: error: mcrypt.h not found. Please reinstall libmcrypt.

# wget http://app.nidc.kr/linux/lib/libmcrypt-2.5.8.tar.gz

# tar xvfz libmcrypt-2.5.8.tar.gz

# cd tar xvfz libmcrypt-2.5.8

# ./configure && make && make install

# echo "/usr/local/lib" >> /etc/ld.so.conf

# ldconfig


configure: error: Cannot find libtidy

# yum install libtidy libtidy-devel

안될 경우

# rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

# rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm


이번에 나온건 이정도인 듯 하다.


추가로 이전에 해결했던 내용도 써두기로 하자.


configure: error: xml2-config not found. Please check your libxml2 installation 

yum install libxml2 libxml2-devel


configure: error: Please reinstall the BZip2 distribution 

yum install bzip2-devel 


configure: error: libjpeg.(a|so) not found. 

yum install libjpeg-devel 


configure: error: libpng.(a|so) not found. 

yum install libpng-devel 


configure: error: freetype.h not found. 

yum install freetype-devel 


configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information. 

yum install libc-client-devel 


configure: error: Kerberos libraries not found. 

yum install krb5-devel 


configure: error:Cannot find OpenSSL's <evp.h> 

yum install openssl-devel


checking for termcap functions library... configure: error: No curses/termcap library found

# yum -y install ncurses-devel


configure: error: C++ preprocessor "/lib/cpp" fails sanity check

# yum -y install gcc-c++


configure: error: Unable to locate gmp.h

# yum -y install gmp*


configure: error: not found. Please reinstall the expat distribution.

# yum -y install expat*


configure: error: Please reinstall the libcurl distribution - easy.h should be in /include/curl/

# yum -y install curl* 또는 yum -y install curl & yum -y install curl-devel


configure: error: Please reinstall libmcrypt - I cannot find mcrypt.h <br>

configure: error: Please reinstall libmhash - I cannot find mhash.h

# yum install libmcrypt libmcrypt-devel libmhash libmhash-devel


configure: error: xml2-config not found. Please check your libxml2 installation

#yum install libxml2-devel


Checking for pkg-config... /usr/bin/pkg-config

configure: error: Cannot find OpenSSL's <evp.h>

#yum install openssl-devel


configure: error: Please reinstall the BZip2 distribution

# yum install bzip2-devel


configure: error: libjpeg.(also) not found.

# yum install libjpeg-devel


configure: error: libpng.(also) not found.

yum install libpng-devel


configure: error: freetype.h not found.

#yum install freetype-devel


configure: error: Cannot find MySQL header files under /usr.

Note that the MySQL client library is not bundled anymore!

# yum install mysql-devel


configure: error: Please reinstall the ncurses distribution

# yum install ncurses-devel


Checking for unixODBC support... configure: error: ODBC header file '/usr/include/sqlext.h' not found!

# yum install unixODBC-devel


configure: error: Cannot find pspell

# yum install pspell-devel


configure: error: snmp.h not found. Check your SNMP installation.

# yum install net-snmp-devel

반응형

'웹_서버_개발 > PHP' 카테고리의 다른 글

안드로이드 PHP 푸시 서버 예제  (0) 2020.06.08
Comments