• php7——Linux/Mac源码安装php7


    下载源码包

    https://www.php.net/downloads

    php-7.4.27.tar.gz

    解压,并进入目录

    ./configure --prefix=/usr/local/php/7.4.27 \
    --with-config-file-path=/usr/local/php/7.4.27/etc \
    --with-config-file-scan-dir=/usr/local/php/7.4.27/etc/conf.d \
    --enable-fpm \
    --with-fpm-user=flybeta \
    --with-fpm-group=admin \
    --with-mysqli \
    --with-pdo-mysql \
    --with-iconv-dir=/usr/local \
    --enable-short-tags \
    --with-freetype \
    --with-zlib \
    --with-jpeg \
    --enable-xml \
    --disable-rpath \
    --enable-bcmath \
    --enable-shmop \
    --enable-sysvsem \
    --enable-inline-optimization \
    --with-curl \
    --enable-mbregex \
    --enable-mbstring \
    --enable-ftp \
    --enable-gd
    --with-mhash \
    --enable-pcntl \
    --enable-sockets \
    --with-xmlrpc \
    --with-zip \
    --enable-soap \
    --without-pear \
    --disable-fileinfo \
    --enable-maintainer-zts \
    --enable-mysqlnd

    make
    make install

    localhost:php-7.4.27 chong$ 
    localhost:php-7.4.27 chong$ make install
    Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20190902/
    Installing PHP CLI binary:        /usr/local/bin/
    Installing PHP CLI man page:      /usr/local/php/man/man1/
    Installing phpdbg binary:         /usr/local/bin/
    Installing phpdbg man page:       /usr/local/php/man/man1/
    Installing PHP CGI binary:        /usr/local/bin/
    Installing PHP CGI man page:      /usr/local/php/man/man1/
    Installing build environment:     /usr/local/lib/php/build/
    Installing header files:          /usr/local/include/php/
    Installing helper programs:       /usr/local/bin/
      program: phpize
      program: php-config
    Installing man pages:             /usr/local/php/man/man1/
      page: phpize.1
      page: php-config.1
    /Users/chong/Documents/soft/php/php-7.4.27/build/shtool install -c ext/phar/phar.phar /usr/local/bin/phar.phar
    ln -s -f phar.phar /usr/local/bin/phar
    Installing PDO headers:           /usr/local/include/php/ext/pdo/
    localhost:php-7.4.27 chong$ /usr/local/bin/php -v
    PHP 7.4.27 (cli) (built: Jan  4 2022 18:38:57) ( NTS )
    Copyright (c) The PHP Group
    Zend Engine v3.4.0, Copyright (c) Zend Technologies
    localhost:php-7.4.27 chong$ 
    localhost:php-7.4.27 chong$ php -v
    PHP 7.4.27 (cli) (built: Jan  4 2022 18:38:57) ( NTS )
    Copyright (c) The PHP Group
    Zend Engine v3.4.0, Copyright (c) Zend Technologies
    localhost:php-7.4.27 chong$ 
  • 相关阅读:
    机器学习-识别手写数字0-9
    tensorflow深度学习-mnist数据集读入-初试
    TensorFlow 2.0 最基础的线性回归
    cuDNN 环境变量-默认安装路径
    INT104-lab2
    [蓝桥杯][历届试题][dfs][割点]危险系数
    2021-03-19:给定一个二维数组matrix,其中的值不是0就是1,返回全部由1组成的最大子矩形,内部有多少个1。
    2021-03-17:手写代码:单链表插入排序。
    2021-03-16:手写代码:单链表归并排序。
    2021-03-15:手写代码:单链表选择排序。
  • 原文地址:https://www.cnblogs.com/xingchong/p/15763569.html
Copyright © 2020-2023  润新知