Compiling the php extension swoole reported an error gcc4.8 or later, but the actual version of GCC is 6.2

1. The compilation times is wrong as shown in the figure

.

clipboard.png

gcc6.2.0,

clipboard.png

Jul.12,2022

@ Han Tianfeng Miss Han help answer

@ Han Tianfeng Thank Mr. Han for his answer

it turns out that swoole defaults to cc, not gcc, on linux, while cc is the softlink
of gcc (old version). After backing up the original gcc, create an existing version of soft connection override, which is fine

.

you have multiple gcc installed on your system. You can use cc-v and which cc exactly which

you are using.
Menu