LNMP编译安装遇到问题归总

本文涉及的产品
云数据库 RDS MySQL Serverless,0.5-2RCU 50GB
简介:

LNMP编译安装遇到问题归总


1、错误:configure: error: freetype-config not found.

      解决:yum install freetype-devel


2、错误:configure: error: libevent >= 1.4.11 could not be found 

      解决:yum -y install libevent libevent-devel 


3、错误:configure: error: Please reinstall the mysql distributio 

      解决:yum -y install mysql-devel 


4、错误:make: *** [sapi/fpm/php-fpm] error 1 

     解决:用make ZEND_EXTRA_LIBS='-liconv'编译 


5、错误:configure: error: XML configuration could not be found 
     解决:yum -y install libxml2 libxml2-devel 


6、错误:configure: error: No curses/termcap library found 
      解决:yum -y install ncurses ncurses-devel 


7、错误:configure: error: xml2-config not found 
      解决:yum -y install libxml2 libxml2-devel 


8、错误:configure: error: Cannot find OpenSSL's <evp.h> 
      解决:yum install openssl openssl-devel 


9、错误:configure: error: Please reinstall the libcurl distribution -easy.h should be in <curl-dir>/include/curl/ 
      解决:yum install curl curl-devel 


10、错误:configure: error: Cannot find ldap.h 
       解决:yum install openldap openldap-devel 


11、错误:configure: error: libjpeg.(aso) not found 
        解决:yum install libjpeglibjpeg -devel 


12、错误:configure: error: libpng.(aso) not found. 
        解决:yum install libpnglibpng –devel 


13、错误:onfigure: error: freetype.h not found. 
        解决:yum install freetype-devel 


14、错误:configure: error: cannot find output from lex; giving up 
        解决:yum -y install flex 


15、错误:configure: error: mod_deflate has been requested but can not be built due to prerequisite failures 
        解决:yum -y install zlib-devel openssl-devel 


16、错误:Configure: error: Unable to locate gmp.h 
         解决:yum install gmp-devel 


17、错误:Configure: error: Cannot find MySQL header files under /usr. Note that the MySQL client library is not bundled anymore! 
        解决:yum install mysql-devel


18、安装php: ./configure   configure: error: XML configuration could not be found 
         解决:yum -y install libxml2 libxml2-devel 

19、Cannot find OpenSSL's <evp.h> 
        解决:yum install openssl openssl-devel 

20、 Configure: error: xml2-config not found. Please check your libxml2 installation. 
         解决:#yum install libxml2 libxml2-devel 

21、Checking for pkg-config… /usr/bin/pkg-config configure: error: Cannot find OpenSSL's <evp.h> 
         解决:yum install openssl openssl-devel 

22、 Configure: error: Please reinstall the BZip2 distribution 
         解决: yum install bzip2 bzip2-devel 

23、 Configure: error: Please reinstall the libcurl distribution - easy.h should be in <curl-dir>/include/curl/ 
         解决: yum install curl curl-devel  

24、Configure: error: libjpeg.(also) not found. 
        解决: yum install libjpeg libjpeg-devel 

25、Configure: error: libpng.(also) not found. 
         解决:yum install libpng libpng-devel 

26、 Configure: error: freetype.h not found. 
         #yum install freetype-devel 

27、 Configure: error: Unable to locate gmp.h 
        # yum install gmp-devel 

28、Configure: error: Cannot find MySQL header files under /usr. Note that the MySQL client library is not bundled anymore! 
        # yum install mysql-devel  

29、 Configure: error: Please reinstall the ncurses distribution 
         # yum install ncurses ncurses-devel 

30、 Checking for unixODBC support… configure: error: ODBC header file ‘/usr/include/sqlext.h' not found! 
         # yum install unixODBC-devel 

31、 Configure: error: Cannot find pspell 
         # yum install pspell-devel 

32、configure: error: mcrypt.h not found. Please reinstall libmcrypt. 
        # yum install libmcrypt libmcrypt-devel


33、Configure: error: snmp.h not found. Check your SNMP installation. 
        解决: yum install net-snmp net-snmp-devel


本文转自 boy461205160 51CTO博客,原文链接:http://blog.51cto.com/461205160/1963478

相关实践学习
基于CentOS快速搭建LAMP环境
本教程介绍如何搭建LAMP环境,其中LAMP分别代表Linux、Apache、MySQL和PHP。
全面了解阿里云能为你做什么
阿里云在全球各地部署高效节能的绿色数据中心,利用清洁计算为万物互联的新世界提供源源不断的能源动力,目前开服的区域包括中国(华北、华东、华南、香港)、新加坡、美国(美东、美西)、欧洲、中东、澳大利亚、日本。目前阿里云的产品涵盖弹性计算、数据库、存储与CDN、分析与搜索、云通信、网络、管理与监控、应用服务、互联网中间件、移动服务、视频服务等。通过本课程,来了解阿里云能够为你的业务带来哪些帮助 &nbsp; &nbsp; 相关的阿里云产品:云服务器ECS 云服务器 ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。产品详情: https://www.aliyun.com/product/ecs
相关文章
|
6月前
|
关系型数据库 MySQL 应用服务中间件
百度搜索:蓝易云【LNMP网站框架搭建(编译安装)】
现在,你已经成功搭建了LNMP网站框架。你可以将你的网站文件放置在指定的网站根目录中,并访问你的域名或IP地址来查看网站。记得根据你的实际需求进行进一步的配置和安全性调整。
227 4
|
应用服务中间件 Shell nginx
Linux centos下编译安装Lnmp shell脚本
自动安装 lnmp web环境
2241 0
|
关系型数据库 应用服务中间件 PHP
|
Web App开发 关系型数据库 应用服务中间件
|
Web App开发 关系型数据库 MySQL
|
Web App开发 关系型数据库 应用服务中间件
|
关系型数据库 应用服务中间件 PHP
|
Web App开发 关系型数据库 应用服务中间件
|
关系型数据库 MySQL 应用服务中间件