编译LNMP报错
搭建LNMP環境時報了許多錯,總結如下:
php編譯錯誤
1. Configure: error: libjpeg.(also) not found.解決 :
#yum -y install gd
#yum -y install gd-devel
#yum install libjpeg libjpeg-devel
2. Configure: error: libpng.(also) not found.解決:
#yum install libpng libpng-devel
3. Configure: error: freetype.h not found.
解決:
#yum install freetype-devel
4. Configure: error: Unable to locate gmp.h解決:
yum install gmp-devel
5. Configure: error: Cannot find MySQL header files under /usr.
Note that the MySQL client library is not bundled anymore!解決:
#yum install mysql-devel
6. Configure: error: Please reinstall the ncurses distribution解決:
#yum install ncurses ncurses-devel
7.configure: error: libpng.(a|so) not found
解決:
#yum install -y libpng-devel
??
8. configure: error: freetype.h not found.
?? 解決:
?? #yum install freetype-devel
9. configure: error: mcrypt.h not found. Please reinstall libmcrypt.
解決: ?
#yum install libmcrypt libmcrypt-devel
php編譯錯誤
1. Configure: error: libjpeg.(also) not found.解決 :
#yum -y install gd
#yum -y install gd-devel
#yum install libjpeg libjpeg-devel
2. Configure: error: libpng.(also) not found.解決:
#yum install libpng libpng-devel
3. Configure: error: freetype.h not found.
解決:
#yum install freetype-devel
4. Configure: error: Unable to locate gmp.h解決:
yum install gmp-devel
5. Configure: error: Cannot find MySQL header files under /usr.
Note that the MySQL client library is not bundled anymore!解決:
#yum install mysql-devel
6. Configure: error: Please reinstall the ncurses distribution解決:
#yum install ncurses ncurses-devel
7.configure: error: libpng.(a|so) not found
解決:
#yum install -y libpng-devel
??
8. configure: error: freetype.h not found.
?? 解決:
?? #yum install freetype-devel
9. configure: error: mcrypt.h not found. Please reinstall libmcrypt.
解決: ?
#yum install libmcrypt libmcrypt-devel
轉載于:https://blog.51cto.com/naonao/669493
與50位技術專家面對面20年技術見證,附贈技術全景圖總結
- 上一篇: C语言运算符优先级 详细列表
- 下一篇: Delphi XE2 之 FireMon