• ubuntu 16 64位编译安装php


    ./configure 
    --prefix=/usr/local/php7 
    --exec-prefix=/usr/local/php7 
    --with-config-file-path=/usr/local/php7/etc 
     --with-curl 
     --with-freetype-dir 
     --with-gd 
     --with-gettext 
     --with-iconv-dir 
     --with-kerberos 
     --with-libdir=lib64 
     --with-libxml-dir 
     --with-mysqli 
     --with-openssl 
     --with-pcre-regex 
     --with-pdo-mysql 
     --with-pdo-sqlite 
     --with-pear 
     --with-png-dir 
     --with-xmlrpc 
     --with-xsl 
     --with-zlib 
    --with-zlib-dir 
    --with-mhash 
    --with-mcrypt 
    --with-openssl-dir 
    --with-jpeg-dir 
    --enable-gd-jis-conv 
     --enable-fpm 
     --enable-bcmath 
     --enable-libxml 
     --enable-inline-optimization 
     --enable-gd-native-ttf 
     --enable-mbregex 
     --enable-mbstring 
     --enable-opcache 
     --enable-pcntl 
     --enable-shmop 
     --enable-soap 
     --enable-sockets 
     --enable-sysvsem 
     --enable-xml 
     --enable-zip
    首先 configure 确定编译环境

    如出现一下错误::::::

    错误1:

    编译安装php7 报错 configure: error: Cannot find OpenSSL's libraries

    1)解决步骤:

    参考:http://linuxzj.blog.51cto.com/6160158/1632132  

            root@test2:~/PHP-5.3.27# find / -name libssl.so

          输出结果为: /usr/lib/x86_64-Linux-gnu/libssl.so

       初步判断它可能只会在 /usr/lib/ 下寻找 libssl.so 文件,于是:

        ln -s /usr/lib/x86_64-linux-gnu/libssl.so  /usr/lib

           重新编译安装即通过。

    还是报同样的错误。

    2)解决步骤2

    参考:https://stackoverflow.com/questions/40359817/litespeed-web-server-and-error-cannot-find-openssls-libraries

    apt-get install build-essential libexpat1-dev libgeoip-dev libpng-dev libpcre3-dev libssl-dev libxml2-dev rcs zlib1g-dev libmcrypt-dev libcurl4-openssl-dev libjpeg-dev libpng-dev libwebp-dev pkg-config

    错误2:

    ./configure的时候出现如下错误:

    configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution

    解决方法:

    apt install libxslt-devel* -y

    与nginx 配置 :http://blog.csdn.net/whatday/article/details/50645117

  • 相关阅读:
    GridView&ObjectDataSource新特性小记 懒人篇(一) 分页上路
    HyperLink多个属性的数据绑定
    关于客户端改变ListBox的一个小问题
    xmlhttp对象调用webservice要点补疑
    GridView&ObjectDataSource 新特性小记 懒人篇(二) 分页加速
    让VisualStudio的StartPage关联自己的博客
    JavaScript null 和 undefined 的比较 Better
    JavaScript 构造函数 Better
    mysql 常用命令汇总 Better
    Vue2前端项目构建&码云托管 Better
  • 原文地址:https://www.cnblogs.com/whm-blog/p/7107975.html
Copyright © 2020-2023  润新知