Monday, July 11, 2011

linux apache + php installed under the Frequently Asked Questions

configure: error: Unable to find libgd. (a | so)

If you are using ubuntu or debian is very simple, direct sudo apt-get install apache2 libapache2-mod-php5 php5 php5-gd basically get, but still with a lot of trouble installing the source code -

wget HTTP: / / www.boutell.com / gd / HTTP / gd-2.0.11.tar.gz
tar zxvf gd-2.0.11.tar.gz
cd gd-2.0.11
sudo . / configure - prefix = / usr / local / gd2
sudo make
sudo make install PHP again: ~ / :. / configure ... ... - with-gd = / usr / local / gd2 ... ...
The following is based on the yum install or apt-get's.

1)

Configure: error: xml2-config not found. Please check your libxml2 installation.
# Yum install libxml2 libxml2-devel (For Redhat & Fedora)
# aptitude install libxml2-dev (For Ubuntu)
2)

Checking for pkg-config ... / usr / bin / pkg-config configure: Error: Can not Find OpenSSL's < evp.h >
# Yum install openssl openssl-devel
3)

Configure: error: Please reinstall the BZip2 distribution
# Yum install bzip2 bzip2-devel
4)

Configure: Error: Please REINSTALL the libcurl Distribution-easy.h should be in < curl-dir > / include / curl /
# Yum install curl curl-devel (For Redhat & Fedora)
# install libcurl4-GnuTLS-dev (For Ubuntu)
5)

Configure: Error: libjpeg. ( also ) not found.
# Yum install libjpeg libjpeg-devel
6)

Configure: Error: libpng. ( also ) not found.
# Yum install libpng libpng-devel
7)

Configure: error: freetype.h not found.
# Yum install freetype-devel
8)

Configure: Error: Unable to Locate gmp.h
# Yum install gmp-devel
9)

Configure: Error: Can not Find MySQL header Files under / usr. Note that the MySQL Client Library is not bundled anymore !
# Yum install MySQL-devel (For Redhat & Fedora)
# apt-Get install libmysql + +-dev (For Ubuntu)
10)

Configure: error: Please reinstall the ncurses distribution
# Yum install ncurses ncurses-devel
11)

Checking for unixODBC Support ... configure: Error: ODBC header file ' / usr / include / sqlext.h 'not found !
# Yum install unixODBC-devel
12)

Configure: Error: Can not Find pspell
# Yum install pspell-devel
13)

configure: error: mcrypt.h not found. Please reinstall libmcrypt.
# Yum install libmcrypt libmcrypt-devel (For Redhat & Fedora)
# apt-Get install libmcrypt-dev
14)

Configure: error: snmp.h not found. Check your SNMP installation.
# Yum install net-snmp net-snmp-devel
Above is reproduced content