尝试从源代码编译 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’?
你知道如何解决吗?
执行后续步骤:
make clean
--enable-opcache
选项添加到您的配置脚本中 ./configure --enable-opcache
make
@Mike Headless 答案帮助修复了 Red Hat Enterprise Linux 版本 8.6 (Ootpa)、httpd-2.4.58 (Apache) PHP 8.3.3 上的问题