Tuesday, June 18, 2013

PHP compilation errors & Fix

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

Fix:-
#yum install libmcrypt libmcrypt-devel

configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution

Fix:-
#yum install libxslt-devel

configure: error: Cannot find libmysqlclient under /usr.
Note that the MySQL client library is not bundled anymore!

Fix:-
#ln -s /usr/lib64/libmysqlclient.so /usr/lib/libmysqlclient.so
#ln -s /usr/lib64/libmysqlclient.so /usr/local/libmysqlclient.so

gcc: /usr/lib/mysql/libmysqlclient.so: No such file or directory

Fix:-
#ln -s /usr/lib64/libmysqlclient.so /usr/lib64/mysql/libmysqlclient.so

checking for BZip2 in default path… not found
configure: error: Please reinstall the BZip2 distribution
Fix:
#yum install bzip2-devel

checking for cURL in default path… not found
configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/

Fix:
yum install curl-devel

checking for png_write_image in -lpng… yes
If configure fails try –with-xpm-dir=<DIR>
configure: error: freetype.h not found.

Fix:

Reconfigure your PHP with the option.
–with-xpm-dir=/usr

checking for jpeg_read_header in -ljpeg… yes
configure: error: png.h not found.

Fix:
yum install libpng-devel

configure: error: Unable to locate gmp.h

Fix:
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.

Fix:
yum install libc-client-devel

checking for pg_config… not found
configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path

Fix:
yum install postgresql-devel

checking for sqlite3 files in default path… not found
configure: error: Please reinstall the sqlite3 distribution

Fix:
yum install sqlite-devel

checking for PCRE headers location… configure: error: Could not find pcre.h in /usr

Fix:
yum install pcre-devel

configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution

Fix:
yum install libxslt-devel

configure: error: SNMP sanity check failed. Please check config.log for more information.

Fix:
yum install net-snmp-devel

configure: error: Unable to detect ICU prefix or no failed. Please verify ICU install prefix and make sure icu-config works.

FiX:
yum install libicu-devel

configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path

Fix:
yum install postgresql-devel

checking for location of ICU headers and libraries... not found
configure: error: Unable to detect ICU prefix or no failed. Please verify ICU install prefix and make sure icu-config works.

fix install package libicu and libicu-devel.

configure: error: Please reinstall the BZip2 distribution
Fehlende Bibliothek: libbz2

1
apt-get install libbz2-dev
configure: error: Please reinstall the libcurl distribution - easy.h should be in <curl-dir>/include/curl/
Fehlende Bibliothek: libcurl

1
apt-get install libcurl3-dev

Debian Lenny:
1
libcurl4-openssl-dev

configure: error: Cannot find MySQL header files under yes.
Fehlende Bibliothek: libmysql

1
apt-get install libmysqlclient15-dev

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

1
apt-get install libgdbm-dev

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

1
apt-get install libjpeg62 libjpeg62-dev

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

1
apt-get install libpng12-0 libpng12-dev

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

1
apt-get install libxml2 libxml2-dev

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

1
apt-get install libmcrypt4 libmcrypt-dev

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

1
apt-get install libmhash2 libmhash-dev

configure: error: Please reinstall readline - I cannot find readline.h
Fehlende Bibliothek: libreadline

1
apt-get install libreadline5-dev

configure: error: cannot find mm library
Fehlende Bibliothek: libmm

1
apt-get install libmm-dev libmm14

configure: error: Cannot find libtidy
Fehlende Bibliothek: libtidy

1
apt-get install libtidy-dev libtidy-0.99-0

configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
Fehlende Bibliothek: libxslt

1
apt-get install libxslt1-dev libxslt1.1

1) Configure: error: xml2-config not found. Please check your libxml2 installation.

Solutions :
#yum install libxml2-devel
2) Checking for pkg-config... /usr/bin/pkg-config
configure: error: Cannot find OpenSSL's <evp.h>

Solutions :
#yum install openssl-devel
3) Configure: error: Please reinstall the BZip2 distribution

Solutions :
# yum install bzip2-devel
4) Configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/

Solutions :
# yum install curl-devel
5) Configure: error: libjpeg.(also) not found.

Solutions :
# yum install libjpeg-devel
6) Configure: error: libpng.(also) not found.

Solutions :
# yum install libpng-devel
7) Configure: error: freetype.h not found.
Solutions :
#yum install freetype-devel
8) Configure: error: Unable to locate gmp.h

Solutions :
# yum install gmp-devel
9) Configure: error: Cannot find MySQL header files under /usr.
Note that the MySQL client library is not bundled anymore!

Solutions :
# yum install mysql-devel
10) Configure: error: Please reinstall the ncurses distribution

Solutions :
# yum install ncurses-devel
11) Checking for unixODBC support... configure: error: ODBC header file '/usr/include/sqlext.h' not found!

Solutions :
# yum install unixODBC-devel
12) Configure: error: Cannot find pspell

Solutions :
# yum install pspell-devel
13) Configure: error: snmp.h not found. Check your SNMP installation.

Solutions :
# yum install net-snmp-devel
If you have any doubts or face any errors, please feel free to approach me with your queries..
Last edited by AlexP; 02-10-2008 at 23:14. Reason: typo

No comments:

Post a Comment