编译 PHP 8.0.1 失败

问题描述 投票:0回答:2

尝试从源代码编译 php 8.0.1 时出现构建错误。 配置命令是:

configure --prefix=/home/abc/ins/php8/ --with-apxs2=/home/abc/ins/apache/bin/apxs

错误如下:

/home/abc/Downloads/php-8.0.1/ext/opcache/jit/zend_jit_x86.dasc: In function ‘zend_jit_interrupt_handler_stub’:

/home/abc/Downloads/php-8.0.1/ext/opcache/jit/zend_jit_x86.dasc:1745:25: 

error: ‘executor_globals’ undeclared (first use in this function); 
did you mean ‘executor_globals_id’?

你知道如何解决吗?

php compilation
2个回答
1
投票

执行后续步骤:

  1. 在包含源文件的目录中执行:
    make clean
  2. --enable-opcache
    选项添加到您的配置脚本中
    ./configure --enable-opcache
  3. 再次运行
    make

0
投票

@Mike Headless 答案帮助修复了 Red Hat Enterprise Linux 版本 8.6 (Ootpa)、httpd-2.4.58 (Apache) PHP 8.3.3 上的问题

© www.soinside.com 2019 - 2024. All rights reserved.