Following were some of the errors (and their solutions) that I had to face while installing PHP from source tarballs. The solutions are described with the assumption that the yum repository is already configured.
Configure: error: Cannot find openssl's <evp.h>
# yum install openssl-devel
Could not find pcre.h in /usr
# yum install pcre-devel
Configure: error: Please reinstall the BZip2 distribution
# yum install bzip2-devel
Configure: error : Please reinstall the libcurl distribution.
# yum install curl-devel
DBA: Could not find necessary header file(s)
# yum install db2-devel
Configure: error: Unable to locate gmp.h
# yum install gmp-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
Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path
# yum install postgresql-devel
Configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
# yum install libxslt-devel
Configure: error: freetype.h not found
# yum install freetype-devel
Configure: error: Cannot find ldap.h
# yum install openldap-devel
Could not find pspell
# yum install aspell-devel
Configure: error: xml2-config not found. Please check your libxml2 installation.
# yum install libxml2-devel
Configure: error: Cannot find MySQL header files under /usr.
Note that the MySQL client library is not bundled anymore!
Install the MySQL-devel package corresponding to your MySQL version
Checking for unixODBC support... configure: error: ODBC header file '/usr/include/sqlext.h' not found!
# yum install unixODBC-devel
Configure: error: snmp.h not found. Check your SNMP installation
# yum install net-snmp-devel
Note :- The following error occur while performing 'make'
php-5.3.9/sapi/cli/php: error while loading shared libraries: libpq.so.5: cannot open shared object file: No such file or directory
make: *** [ext/phar/phar.php] Error 127
The solution was the libpq.so.5 library file which was present inside the lib directory of the PostgreSQL installation directory was copied to /usr/lib64
Configure: error: Cannot find openssl's <evp.h>
# yum install openssl-devel
Could not find pcre.h in /usr
# yum install pcre-devel
Configure: error: Please reinstall the BZip2 distribution
# yum install bzip2-devel
Configure: error : Please reinstall the libcurl distribution.
# yum install curl-devel
DBA: Could not find necessary header file(s)
# yum install db2-devel
Configure: error: Unable to locate gmp.h
# yum install gmp-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
Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path
# yum install postgresql-devel
Configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
# yum install libxslt-devel
Configure: error: freetype.h not found
# yum install freetype-devel
Configure: error: Cannot find ldap.h
# yum install openldap-devel
Could not find pspell
# yum install aspell-devel
Configure: error: xml2-config not found. Please check your libxml2 installation.
# yum install libxml2-devel
Configure: error: Cannot find MySQL header files under /usr.
Note that the MySQL client library is not bundled anymore!
Install the MySQL-devel package corresponding to your MySQL version
Checking for unixODBC support... configure: error: ODBC header file '/usr/include/sqlext.h' not found!
# yum install unixODBC-devel
Configure: error: snmp.h not found. Check your SNMP installation
# yum install net-snmp-devel
Note :- The following error occur while performing 'make'
php-5.3.9/sapi/cli/php: error while loading shared libraries: libpq.so.5: cannot open shared object file: No such file or directory
make: *** [ext/phar/phar.php] Error 127
The solution was the libpq.so.5 library file which was present inside the lib directory of the PostgreSQL installation directory was copied to /usr/lib64
No comments:
Post a Comment