LNMP编译安装遇到问题归总

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

时间: 2024-08-02 11:03:32

LNMP编译安装遇到问题归总的相关文章

LNMP编译安装之msyql安装--图文详解

LNMP编译安装之msyql安装--图文详解 1.前言 本次安装采用源码安装,主要资源包从官网下载,次要依赖则使用yum进行安装,本篇只涉及mysql的安装,msyql远程登录,不涉及mysql具体配置.该教程纯属安装,不涉及任何重要知识点,老少皆宜. 2.安装步骤 2.1.下载boost(只下载不安装) wget http://nchc.dl.sourceforge.net/project/boost/boost/1.59.0/boost_1_59_0.tar.gz 2.2.解压bosot t

LNMP编译安装之nginx安装--图文详解

LNMP编译安装之nginx安装--图文详解 1.前言 本次安装采用源码安装,主要资源包从官网下载,次要依赖则使用yum进行安装,本篇只涉及nginx的安装,不涉及nginx的配置,对应nginx如何访问php,本篇也不涉及.该教程纯属安装,不涉及任何重要知识点,老少皆宜. 2.安装步骤 nginx官网:http://nginx.org/en/download.html 2.1.下载nginx wget http://nginx.org/download/nginx-1.12.0.tar.gz

LNMP编译安装之nginx关联php--图文详解

LNMP编译安装之nginx关联php--图文详解 1.前言 之前已经介绍了nginx,php,mysql的编译安装过程,但nginx和php的关联没有涉及,导致网页不能正常使用php功能,所有本编介绍如何将nginx和php进行关联,使*.php文件可以正常在浏览器访问. 2.准备步骤 2.1.修改php-fpm配置文件 cp /usr/local/php7/etc/php-fpm.conf.default /usr/local/php7/etc/php-fpm.confcp /usr/loc

LNMP编译安装之php安装--图文详解

LNMP编译安装之php安装--图文详解 1.前言 本次安装采用源码安装,主要资源包从官网下载,次要依赖则使用yum进行安装,本篇只涉及php的安装,不涉及php的配置,对应nginx如何访问php,本篇也不涉及.该教程纯属安装,不涉及任何重要知识点,老少皆宜. 2.安装步骤 php官网:http://www.php.net/ 2.1.下载php wget  http://php.net/get/php-7.1.7.tar.gz/from/a/mirror 2.2.解压php安装包 tar -z

LNMP编译安装(centos7+nginx1.9+mysql5.6+php5.5)

LNMP编译安装 # 需先配置IP # 软件包的路径 /usr/local/src yum install -y libjpeg-devel libpng-devel freetype-devel curl-devel python-devel curl-devel gcc gcc-c++ bison-devel  ncurses-devel lrzsz openssl-devel libjpeg-devel libpng-devel freetype-devel curl-devel  pyt

linux下nginx,mysql,php(lnmp)编译安装

关闭SELINUX vi /etc/selinux/config #SELINUX=enforcing #注释掉 #SELINUXTYPE=targeted #注释掉 SELINUX=disabled #增加 :wq!  #保存退出 setenforce 0 #使配置立即生效 mysql 5.5.28安装 安装路径:/usr/local/mysql数据库路径:/usr/local/mysql/data/ mysql从5.5版本开始,不再使用./configure编译,而是使用cmake编译器,具

lnmp编译安装

lamp: 卸载php 查看是否有php rpm -qa | grep php 卸载 yum remove php* 查看有没有php.ini的配置文件 有必要在全局下(根目录)搜索下 php.*文件,看还有没有,有则删除 卸载 mysql 查看是否有 mysql软件: rpm -qa | grep mysql 如果有 yum remove mysql* compat-mysql rm -rf /var/lib/mysql rm /etc/my.cnf 再有必要在全局下(根目录)搜索下 my.*

基于新版本LNMP编译安装+wordpress搭建个人博客

一.软件介绍 LNMP代表:Linux系统下的Nginx+Mysql+Php的网站构架技术. Linux系统:免费使用和自由传播的类Unix操作系统,稳定可靠. Nginx:高性能的HTTP和反向代理web服务器,同时也提供了IMAP/POP3/SMTP服务. Mysql: 关系型数据库管理系统,本次使用mariadb软件,它是mysql的一个分支,由开源社区维护. Php: 超文本预处理器,是一种通用开源脚本语言.语法吸收了C语言.Java和Perl的特点,利于学习,使用广泛,主要适用于Web

linux lnmp编译安装

关闭SELINUX vi /etc/selinux/config #SELINUX=enforcing #注释掉 #SELINUXTYPE=targeted #注释掉 SELINUX=disabled #增加 :wq!  #保存退出 setenforce 0 #使配置立即生效 mysql 5.5.28安装 安装路径:/usr/local/mysql数据库路径:/usr/local/mysql/data/ mysql从5.5版本开始,不再使用./configure编译,而是使用cmake编译器,具