zoukankan      html  css  js  c++  java
  • php8编译安装

    wget https://www.php.net/distributions/php-8.0.0.tar.gz

    tar zxvf php-8.0.0.tar.gz

    cd php-8.0.0

    ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-opcache --enable-shmop --enable-pcntl --enable-cgi --enable-fpm --enable-sockets --enable-soap --enable-bcmath --enable-mbstring --enable-xml --with-zlib --with-mysqli --enable-pdo --with-pdo-mysql --with-curl --with-mhash --with-mcrypt --with-openssl --with-iconv

    No package 'libcurl' found
    yum install libcurl-devel

    yum install libxml2-devel.x86_64

    php编译安装报错:make: *** [sapi/cli/php] Error 1 解决办法
    wget https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.15.tar.gz
    tar zxvf libiconv-1.15.tar.gz
    cd libiconv-1.15
    # ./configure --prefix=/usr/local
    make
    make install
    ln -s /usr/local/lib/libiconv.so.2 /usr/lib64/

    No package 'oniguruma' found
    yum install -y
    libfreetype6-dev
    libjpeg62-turbo-dev
    libmcrypt-dev
    libpng-dev
    zlib1g-dev
    libxml2-dev
    libzip-dev
    graphviz

    make 和 make install 报错

    undefined reference to `curl_pushheader_bynum'
    1
    解决方法
    yum remove curl-devel

    Build complete.
    Don't forget to run 'make test'.

    [root@crius php-8.0.0]# make install
    Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-non-zts-20200930/
    Installing PHP CLI binary: /usr/local/php/bin/
    Installing PHP CLI man page: /usr/local/php/php/man/man1/
    Installing PHP FPM binary: /usr/local/php/sbin/
    Installing PHP FPM defconfig: /usr/local/php/etc/
    Installing PHP FPM man page: /usr/local/php/php/man/man8/
    Installing PHP FPM status page: /usr/local/php/php/php/fpm/
    Installing phpdbg binary: /usr/local/php/bin/
    Installing phpdbg man page: /usr/local/php/php/man/man1/
    Installing PHP CGI binary: /usr/local/php/bin/
    Installing PHP CGI man page: /usr/local/php/php/man/man1/
    Installing build environment: /usr/local/php/lib/php/build/
    Installing header files: /usr/local/php/include/php/
    Installing helper programs: /usr/local/php/bin/
    program: phpize
    program: php-config
    Installing man pages: /usr/local/php/php/man/man1/
    page: phpize.1
    page: php-config.1
    /cshare/php-8.0.0/build/shtool install -c ext/phar/phar.phar /usr/local/php/bin/phar.phar
    ln -s -f phar.phar /usr/local/php/bin/phar
    Installing PDO headers: /usr/local/php/include/php/ext/pdo/

  • 相关阅读:
    Powershell 的自己主动部署
    Python 爬虫批量下载美剧 from 人人影视 HR-HDTV
    c :函数指针具体解释
    云计算设计模式(二十二)——静态内容托管模式
    Bash 脚本 getopts为什么最后一个參数取不到
    清理SYSAUX表空间的WRH$_LATCH_CHILDREN表
    Linux配置防火墙,开启80port、3306port 可能会遇到的小问题
    Android v4包中的 SwipeRefreshLayout 官方的下拉刷新组件
    Nginx 笔记与总结(3)配置虚拟主机
    用SPSS做时间序列
  • 原文地址:https://www.cnblogs.com/Crius/p/14068241.html
Copyright © 2011-2022 走看看