zoukankan      html  css  js  c++  java
  • 编译安装PHP 时遇到问题解决方法.

    编译安装PHP时出现下面的错误代码:

    error 2
    
    checking for pkg-config... /usr/bin/pkg-config
    configure: error: Cannot find OpenSSL's <evp.h>
    

    根据错误提示,感觉好像是缺少了OpenSSL的安装包,于是尝试着安装一下OpenSSL的安装包。

     yum  install  openssl.x86_64 openssl-devel.x86_64 -y
    

      安装完成后,在配置PHP的选项

    cd php-5.5.32
    ./configure 
    --prefix=/application/php-5.5.32 
    --with-mysql=/application/mysql/ 
    --with-pdo-mysql=mysqlnd 
    --with-iconv-dir=/usr/local/libiconv 
    --with-freetype-dir 
    --with-jpeg-dir 
    --with-png-dir 
    --with-zlib 
    --with-libxml-dir=/usr 
    --enable-xml 
    --disable-rpath 
    --enable-bcmath 
    --enable-shmop 
    --enable-sysvsem 
    --enable-inline-optimization 
    --with-curl 
    --enable-mbregex 
    --enable-fpm 
    --enable-mbstring 
    --with-mcrypt 
    --with-gd 
    --enable-gd-native-ttf 
    --with-openssl 
    --with-mhash 
    --enable-pcntl 
    --enable-sockets 
    --with-xmlrpc 
    --enable-soap 
    --enable-short-tags 
    --enable-static 
    --with-xsl 
    --with-fpm-user=www 
    --with-fpm-group=www 
    --enable-ftp 
    --enable-opcache=no
    

      配置完成后,上面的错误代码就没有了,于是进行了下面的编译和编译安装

  • 相关阅读:
    PPT_标题
    产品需求撰写-架构图
    测试
    SparkLauncher 1.6 版本bug
    Github fork同步
    Maven 配置远程仓库
    Sqoop2中传入配置文件中url之【坑】
    Spark性能优化-coalesce(n)
    面试算法题目
    Git 基本概念及常用命令
  • 原文地址:https://www.cnblogs.com/dadonggg/p/7473150.html
Copyright © 2011-2022 走看看