本文主要是介绍centos6.4x64安装php遇到的错误,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
错误:
# yum install freetype-devel
错误:
# yum install libc-client libc-client-devel
错误:
# ln -s /usr/lib64/libc-client.so /usr/lib/libc-client.so
错误:
这个系统自身并没带相关的rpm包,因些需要自己手动编译安装, 源码包: http://sourceforge.net/projects/mcrypt/files/Libmcrypt/2.5.8/
安装Libmcrypt
错误 :
这个由于在编译的时候指定了 ‘ --with-pdo-mysql ’ 选项,但它并没有找到 mysql 的安装目录,因此只用指定 mysql 的安装目录就可以了 '--with-pdo-mysql=/usr/local/mysql'
- If configure fails try --with-xpm-dir=<DIR>
- configure: error: freetype.h not found.
错误:
- configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information
错误:
- configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation.
错误:
- configure: error: mcrypt.h not found. Please reinstall libmcrypt.
安装Libmcrypt
- # tar -zxvf libmcrypt-2.5.8.tar.gz
- # cd libmcrypt-2.5.8
- # ./configure
- # make
- # make install
错误 :
- checking for mysql_config... not found
- configure: error: Unable to find your mysql installation
错误:
yum#yum -y install libmcrypt libmcrypt-devel php-mcrypt php-mbstring
- mcrypt.h not found. Please reinstall libmcrypt.
这篇关于centos6.4x64安装php遇到的错误的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!