總結安裝lamp lnmp 安裝所需求的包。。99%安裝都不會出錯

centos 6+系列環境
      
安裝php前.先安裝些軟件和庫文件
yum install -y gcc gcc-c++  make zlib zlib-devel pcre pcre-devel  libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers

如出現以下錯誤,
錯誤:
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
解決辦法:
rpm -ivh "http://www.aminglinux.com/bbs/data/attachment/forum/month_1211/epel-release-6-7.noarch.rpm"
yum install -y  libmcrypt-devel 
                         整個過程就完成。
                在裝php之前把此上都裝好。。。經測試99%都順利安裝。。。
                 供師兄們參考。。。有不正之處,請指出!!!!!!3q


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章