编译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
  

你可能感兴趣的:(error,职场,configure,休闲,搭建LNMP)