2013-10-31 85 views
1

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

的./configure --with-apxs2 =/TSM /家/ tsmtst01 /阿帕奇/ bin中/ apxs的--with MySQL的

./make

"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' 
+0

这是好的,如果我跳过zend_optimizer。如果是这样,我该怎么做? – Arav

回答

5

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

祝你好运!

+0

非常感谢您的信息。将尝试并让你知道。非常感谢您的时间和帮助。 – Arav

+0

非常感谢它现在正在工作。导出D_LIBRARY_PATH_64 =/lib/64:/ usr/lib/64导出LD_LIBRARY_PATH =/lib:/ usr/lib ./configure --prefix =/tsm/home/tsmtst01/phpinstall --enable-opcache = no -with-mysql – Arav

+0

在make install成功完成后,我无法在phpinstall目录中找到lib_php5.so和php ini文件。运行configure脚本时是否需要添加其他选项? – Arav