zoukankan      html  css  js  c++  java
  • centos7 源码编译安装php7,报错make: *** 没有指明目标并且找不到 makefile。 停止。

    首先,报错啥就去安装对应的扩展,就对了(这点很重要)!!!

    在检测过程中如果检测到没有安装某个扩展他就自动停止了,你再 make && make install 时,就会报错。并不像网上说都是缺少gcc,具体看你缺少啥就安装啥扩展,

    我的时先后报了两次错;

    第一次,报错

    checking for BZip2 support... yes

    checking for BZip2 in default path... not found

    configure: error: Please reinstall the BZip2 distribution

    执行命令

    yum install bzip2-devel.x86_64 -y

    第二次,

    configure: error: Please reinstall the libcurl distribution -
        easy.h should be in /include/curl/

    执行如下命令

    yum install curl curl-devel

    接着执行 ./configure 命令

    ./configure --prefix=/usr/local/php7 --with-config-file-path=/usr/local/php7/etc  --enable-mbstring --with-libxml-dir=/usr --enable-soap --with-curl --with-zlib --with-gd --with-pdo-sqlite --with-pdo-mysql --with-mysqli --with-mysql-sock --enable-mysqlnd --disable-rpath --enable-inline-optimization --with-bz2 --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --enable-exif --enable-bcmath --with-mhash --enable-zip --with-pcre-regex --enable-ftp --with-kerberos --with-xmlrpc --with-fpm-user=www --disable-fileinfo

    再次执行 make && make install 编译 成功。

    赞赏码

    非学,无以致疑;非问,无以广识

  • 相关阅读:
    Android笔记(十)ListView
    GDI+ 怎样将图片绘制成圆形的图片
    自己定义View学习之12/7(进度条之混合模式)
    iOS_21团购_Popover适应iPad横竖屏切换
    SVNserver搭建
    SNMP报文抓取与分析(一)
    我的Vim配置(自动补全/树形文件浏览)
    U盘安装ubuntu server 14.04
    vim帮助手册汉化
    QT 信号与槽connect
  • 原文地址:https://www.cnblogs.com/lxwphp/p/15452490.html
Copyright © 2011-2022 走看看