gpt4 book ai didi

php在apache中安装编译报错

转载 作者:行者123 更新时间:2023-11-28 22:05:34 26 4
gpt4 key购买 nike

使用solaris 10 Sparc平台和solarisstudio12.3 c编译器。成功下载并编译apache 2.4.6。下载 php-5.5.5 并编译但在运行 make 命令时出现以下错误。如何解决此错误。使用以下命令

./configure --with-apxs2=/tsm/home/tsmtst01/apache/bin/apxs --with-mysql

./制作

"ext/opcache/Optimizer/pass3.c", line 27: syntax error before or at: if
"ext/opcache/Optimizer/pass3.c", line 27: invalid source character: '\'
"ext/opcache/Optimizer/pass3.c", line 27: syntax error before or at: )
"ext/opcache/Optimizer/pass3.c", line 84: invalid source character: '\'
"ext/opcache/Optimizer/pass3.c", line 85: invalid source character: '\'
"ext/opcache/Optimizer/pass3.c", line 87: syntax error before or at: }
"ext/opcache/Optimizer/pass3.c", line 126: invalid source character: '\'
"ext/opcache/Optimizer/pass3.c", line 131: syntax error before or at: }
"ext/opcache/Optimizer/pass3.c", line 212: invalid source character: '\'
"ext/opcache/Optimizer/pass3.c", line 214: syntax error before or at: else
"ext/opcache/Optimizer/pass3.c", line 226: invalid source character: '\'
"ext/opcache/Optimizer/pass3.c", line 228: syntax error before or at: else
"ext/opcache/Optimizer/pass3.c", line 266: invalid source character: '\'
"ext/opcache/Optimizer/pass3.c", line 268: syntax error before or at: for
"/tsm/home/tsmtst01/php-5.5.5/ext/opcache/Optimizer/zend_optimizer.c", line 281: warning: invalid white space character in directive
"ext/opcache/Optimizer/pass5.c", line 1: invalid source character: '\'
"ext/opcache/Optimizer/pass5.c", line 1: syntax error before or at: )
"/tsm/home/tsmtst01/php-5.5.5/ext/opcache/Optimizer/zend_optimizer.c", line 286: warning: invalid white space character in directive
"ext/opcache/Optimizer/pass9.c", line 6: invalid source character: '\'
"ext/opcache/Optimizer/pass9.c", line 6: syntax error before or at: )
"/tsm/home/tsmtst01/php-5.5.5/ext/opcache/Optimizer/zend_optimizer.c", line 291: warning: invalid white space character in directive
"ext/opcache/Optimizer/pass10.c", line 1: invalid source character: '\'
"ext/opcache/Optimizer/pass10.c", line 1: syntax error before or at: )
"/tsm/home/tsmtst01/php-5.5.5/ext/opcache/Optimizer/zend_optimizer.c", line 292: syntax error before or at: <EOF>
"ext/opcache/Optimizer/block_pass.c", line 1224: warning: static function called but not defined: assemble_code_blocks()
"ext/opcache/Optimizer/block_pass.c", line 1903: warning: static function called but not defined: zend_t_usage()
"ext/opcache/Optimizer/block_pass.c", line 1355: warning: static function called but not defined: zend_jmp_optimization()

cc: acomp failed for /tsm/home/tsmtst01/php-5.5.5/ext/opcache/Optimizer/zend_optimizer.c
*** Error code 1 make: Fatal error: Command failed for target `ext/opcache/Optimizer /zend_optimizer.lo'

最佳答案

这是因为PHP bug #65207 , 要禁用 opcache 使用 --enable-opcache=no 配置标志 - 禁用是安全的,但会降低性能。

祝你好运!

关于php在apache中安装编译报错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19696550/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com