1:運行nginx時的錯誤php
./configure: error: the HTTP rewrite module requires the PCRE library.mysql
解決:nginx
[root@svr110 nginx-1.2.0]# rpm -qa | grep -i pcresql
pcre-7.8-6.el6.x86_64curl
[root@svr110 nginx-1.2.0]# yum -y install pcre-develui
2:./configure: error: SSL modules require the OpenSSL library.url
解決:xml
[root@svr110 nginx-1.2.0]# rpm -qa | grep -i opensslip
openssl-1.0.0-27.el6.x86_64ssl
pyOpenSSL-0.10-2.el6.x86_64
[root@svr110 nginx-1.2.0]# yum -y install openssl-devel
3:運行mysql時的錯誤
remove CMakeCache.txt and rerun cmake.On Debian/Ubuntu
解決:
[root@svr110 mysql-5.5.13]# yum -y install ncurses-devel
[root@svr110 mysql-5.5.13]# rm -rf CMakeCache.txt
4:運行php時錯誤
configure: error: xml2-config not found. Please check your libxml2 installation
解決:
[root@svr110 php-5.4.9]# yum -y install libxml2-devel
configure: error: Please reinstall the libcurl distribution -
解決:
[root@svr110 php-5.4.9]# rpm -qa | grep -i libcurl
libcurl-7.19.7-35.el6.x86_64
[root@svr110 php-5.4.9]# yum -y install libcurl-devel
configure: error: jpeglib.h not found
解決:
[root@svr110 php-5.4.9]# yum -y install *jpeg*
configure: error: png.h not found.
解決:
[root@svr110 php-5.4.9]# yum -y install *png*
configure: error: freetype.h not found.
解決:
[root@svr110 php-5.4.9]# yum -y install *freetype*
configure: error: Cannot find ldap.h
解決:
[root@svr110 php-5.4.9]# yum -y install *ldap*
configure: error: Cannot find ldap libraries in /usr/lib
解決:
ln -sv /usr/local/lib/libmcrypt* /usr/lib/
ln -sv /usr/local/lib/libmhash.* /usr/lib/
ln -sv /usr/local/lib/libiconv.* /usr/lib/
[root@svr5 Desktop]#ldconfig
[root@svr110 php-5.4.9]# yum -y install *ldap*.i686
若是還提示ldap錯誤
cp -frp /usr/lib64/libldap* /usr/lib/
mysql啓動錯誤
若是mysql若是起不來,執行
chown -R mysql:mysql /usr/local/mysql
/usr/local/mysql/scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data &
進入/usr/local/mysql/data/目錄刪除ib_logfile0和ib_logfile1文件