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/

  • 相关阅读:
    P4357 [CQOI2016]K远点对(KDTree)
    P4475 巧克力王国(KDTree)
    P4148 简单题(KDTree)
    P2479 [SDOI2010]捉迷藏
    P4169 [Violet]天使玩偶/SJY摆棋子
    P4455 [CQOI2018]社交网络
    P4575 [CQOI2013]图的逆变换
    P3755 [CQOI2017]老C的任务
    P5057 [CQOI2006]简单题
    批量修改文件名
  • 原文地址:https://www.cnblogs.com/Crius/p/14068241.html
Copyright © 2011-2022 走看看