Install php
Finally, I get this message "Thank you for using PHP."
Below is my php configuration:
./configure '–prefix=/usr/local' '–enable-bcmath' '–enable-calendar' '–enable-dbase' '–enable-exif' '–enable-fastcgi' '–enable-ftp' '–enable-gd-native-ttf' '–enable-libxml' '–enable-mbstring' '–enable-pdo=shared' '–enable-safe-mode' '–enable-sockets' '–enable-wddx' '–enable-zend-multibyte' '–enable-zip' '–prefix=/usr' '–with-curl=/opt/curlssl/' '–with-curlwrappers' '–with-freetype-dir=/usr' '–with-gd' '–with-gettext' '–with-imap=/opt/php_with_imap_client/' '–with-imap-ssl=/usr' '–with-jpeg-dir=/usr' '–with-kerberos' '–with-libexpat-dir=/usr' '–with-libxml-dir=/opt/xml2/' '–with-mcrypt=/opt/libmcrypt/' '–with-mhash=/opt/mhash/' '–with-mime-magic' '–with-ming=/opt/ming/' '–with-mm=/opt/mm/' '–with-mysql=/usr' '–with-mysql-sock=/var/lib/mysql/mysql.sock' '–with-mysqli=/usr/bin/mysql_config' '–with-openssl=/usr' '–with-openssl-dir=/usr' '–with-pdo-mysql=shared' '–with-pdo-sqlite=shared' '–with-png-dir=/usr' '–with-pspell' '–with-sqlite=shared' '–with-tidy=/opt/tidy/' '–with-ttf' '–with-xmlrpc' '–with-xpm-dir=/usr' '–with-xsl=/opt/xslt/' '–with-zlib' '–with-zlib-dir=/usr'
Some errors and steps that I had done during the installation:
checking for xml2-config path…
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 libcurl distribution – easy.h should be in <curl-dir>/include/curl/
yum install curl-devel
yum install libpng-devel
yum install libpng
yum -y install freetype-devel
yum install up2date pam-devel
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.
yum -y install libc-client-devel
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
yum install libmcrypt
yum install libmcrypt-devel
configure: error: Please reinstall ming distribution. libming.(a|so) not found.
-remove it
checking for MySQL UNIX socket location… /var/lib/mysql/mysql.sock
configure: error: Cannot find MySQL header files under /usr.
Note that the MySQL client library is not bundled anymore!
yum install mysql
yum install mysql-devel
configure: error: Cannot find pspell
yum install aspell
yum install aspell-devel
configure: error: cannot find mm library
-wget ftp://ftp.ossp.org/pkg/lib/mm/mm-1.4.2.tar.gz
-untar it
-make
-make test
-make install
Ref URL: http://tldp.org/LDP/solrhe/Securing-Optimizing-Linux-RH-Edition-v1.3/chap29sec238.html
http://www.ossp.org/com/users.html
configure: error: Cannot find libtidy
After install (yum install libtidy; yum install libtidy-devel) , change the path to /usr
configure: error: not found. Please reinstall the expat distribution.
yum install expat-devel
configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
yum install libxslt
yum install libxslt-devel
Ref URL: http://alloe.tistory.com/tag/php
Daaditsu Said,
January 6, 2009 @ 10:47 pm
‘–with-apxs2=/usr/local/apache/bin/apxs’