Solved Linux CentOS7 having issue in php source code install

breat

New member
Joined
May 14, 2024
Messages
3
After Linux finish ./configure and i proceed to make. This happened.
/root/php-8.3.7/main/php_reentrancy.h:98:7: error: expected identifier or ‘(’ before ‘__extension__’
98 | char *strtok_r(char *s, const char *delim, char **last);
| ^~~~~~~~
make: *** [Makefile:993: ext/opcache/ZendAccelerator.lo] Error 1
Please give me some suggestion and strictly use source code to install php.

what i have tried.

  1. redownload the source tar.gz (checked sha256)
  2. using older version but same problem
 
Solved by installing a complete environment, before didnt solve the dependencies of some library.
 
Back
Top