Some common errors during PHP compilation

In the process of managing and using VPS Linux, the operations for PHP is quite sensitive, and often causes problems in the execution of services on the server. And this article BKNS mentions some of the most common PHP errors during PHP processing on the server, BKNS For example, on CentOS 7 operating system.

  • Error 1
checking for BZip2 support… yeschecking for BZip2 in default path… not foundconfigure: error: Please reinstall the BZip2 distribution


yum install bzip2-devel
  • Error 2
checking for cURL support… yeschecking if we should use cURL for url streams… nochecking for cURL in default path… not foundconfigure: error: Please reinstall the libcurl distribution -easy.h should be in /include/curl/


yum install curl-devel
  • Error 3
checking for fabsf… yeschecking for floorf… yesconfigure: error: jpeglib.h not found.
checking for fabsf… yeschecking for floorf… yeschecking for jpeg_read_header in -ljpeg… yesconfigure: error: png.h not found.
yum install libpng-devel
  • Error 4
checking for curl_multi_strerror in -lcurl… yeschecking for QDBM support… nochecking for GDBM support… nochecking for NDBM support… noconfigure: error: DBA: Could not find necessary header file(s).
yum install db4-devel
  • Error 5
checking for png_write_image in -lpng… yesIf configure fails try –with-xpm-dir=
configure: error: freetype.h not found.
Fix: Reconfigure your PHP with the following option.–with-xpm-dir=/usr
  • Error 6
checking for png_write_image in -lpng… yesconfigure: error: libXpm.(a|so) not found.
yum install libXpm-devel
  • Error 7
checking for bind_textdomain_codeset in -lc… yeschecking for GNU MP support… yesconfigure: error: Unable to locate gmp.h
yum install gmp-devel
  • Error 8:
checking for utf8_mime2text signature… newchecking for U8T_DECOMPOSE…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
  • Error 9
checking for LDAP support… yes, sharedchecking for LDAP Cyrus SASL support… yesconfigure: error: Cannot find ldap.h
yum install openldap-devel
  • Error 10
checking for mysql_set_character_set in -lmysqlclient… yeschecking for mysql_stmt_next_result in -lmysqlclient… nochecking for Oracle Database OCI8 support… nochecking for unixODBC support… configure: error: ODBC header file ‘/usr/include/sqlext.h’ not found!
yum install unixODBC-devel
  • Error 11
checking for PostgreSQL support for PDO… yes, sharedchecking for pg_config… not foundconfigure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path
yum install postgresql-devel
  • Error 12
checking for sqlite 3 support for PDO… yes, sharedchecking for PDO includes… (cached) /usr/local/src/php-5.3.7/extchecking for sqlite3 files in default path… not foundconfigure: error: Please reinstall the sqlite3 distribution
yum install sqlite-devel
  • Error 13
checking for utsname.domainname… yeschecking for PSPELL support… yesconfigure: error: Cannot find pspell
yum install aspell-devel
  • Error 14
checking whether to enable UCD SNMP hack… yeschecking for default_store.h… no
checking for kstat_read in -lkstat… nochecking for snmp_parse_oid in -lsnmp… nochecking for init_snmp in -lsnmp… noconfigure: error: SNMP sanity check failed. Please check config.log for more information.
yum install net-snmp-devel
  • Error 15
checking whether to enable XMLWriter support… yes, sharedchecking for xml2-config path… (cached) /usr/bin/xml2-configchecking whether libxml build works… (cached) yeschecking for XSL support… yes, sharedconfigure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
yum install libxslt-devel
  • Error 16
configure: error: xml2-config not found. Please check your libxml2 installation.
yum install libxml2-devel
  • Error 17
checking for PCRE headers location… configure: error: Could not find pcre.h in /usr
yum install pcre-devel
  • Error 18
libtool: link: cannot find the library `/usr/lib/’ or unhandled argument `/usr/lib/’make: *** [sapi/cgi/php-cgi] Error 1
cd /usr/src/wget -zvxf libidn-1.26.tar.gzcd libidn-1.26./configuremakemake installln -s /usr/local/lib/ /usr/lib/
  • Error 19
libtool: link: `/usr/lib/’ is not a valid libtool archivemake: *** [ext/xsl/] Error 1
cd /usr/src/wget -zvxf libxml2-2.7.3.tar.gzcd libxml2-2.7.3./configure –prefix=/usrmakemake install
  • Error 20
configure: error: Your t1lib distribution is not installed correctly. Please reinstall it.
yum install t1lib-devel.x86_64
  • Error 21
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
yum install libmcrypt-devel.x86_64
  • Error 22
configure: error: Cannot find libtidy


yum install libtidy libtidy-devel
Hao Pham – Technical Department!

The post Some common errors in PHP compilation appeared first on BKNS.VN.

By Nguyen Manh Cuong

Nguyen Manh Cuong is the author and founder of the nguyendiep blog. With over 14 years of experience in Online Marketing, he now runs a number of successful websites, and occasionally shares his experience & knowledge on this blog.

Leave a comment

Your email address will not be published. Required fields are marked *