久病成医---PHP

来源:互联网 发布:百度旅游预测数据 编辑:程序博客网 时间:2024/06/13 11:03

Centos docker 环境中PHP5.3编译安装

  • 本文档主要收录一些自己在安装或者编译不同版本PHP中遇到的一些问题以及解决方案,仅供参考学习。有什么不对的地方希望大家指正。

BUG集群

场景一:编译安装PHP5.3

  • 安装步骤
  • 参考
    (1). 安装php5.3依赖库

    sudo yum install gcc gcc-c++ libxml2 libxml2-devel autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel  zlib zlib-devel \  glibc glibc-devel glib2 glib2-devel openssl-devel bzip2-devel libcurl-devel t1lib-devel gmp-devel libc-client-devel openldap-devel unixODBC-devel \  mysql-devel expat-devel libxslt-devel libmcrypt libmcrypt-devel libedit wget 

    (2). 下载编译安装

    wget http://cn2.php.net/distributions/php-5.3.28.tar.bz2  tar jxf php-5.3.28.tar.bz2  cd php-5.3.28  ./configure --prefix=/usr/local/php5 --with-config-file-path=/usr/local/php5/etc --with-config-file-scan-dir=/usr/local/php5/etc/php.d --with-bz2 --with-openssl --with-zlib --with-mhash --with-pcre --enable-exif --enable-sockets --enable-mbstring --enable-xml --enable-fpm --enable-soap --with-gd --with-curl --with-mcrypt --with-unixODBC --with-imap --with-imap-ssl --with-jpeg-dir --with-png-dir --with-zlib-dir --with-freetype-dir --enable-gd-native-ttf --enable-gd-jis-conv --with-mysqli --with-pdo-mysql --enable-dom --with-kerberos --disable-debug  make  make install
  • bug出现
    在编译(即./configure)过程中出现以下bug

    configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.
  • 解决方案

    暂无,带解放
  • 原因分析

    暂无
0 0