Solved [PHP 7.4] collect2: error: ld returned 1 exit status make: *** [sapi/cgi/php-cgi] Error 1

erick85

Verified User
Joined
Oct 20, 2020
Messages
65
I wanted to install on the server (centos 7, updated) PHP 7.4. After doing ./build update & ./build php I get the error:
collect2: error: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1
make: *** Waiting for unfinished jobs....
collect2: error: ld returned 1 exit status
*** The make has failed. Exiting...
make: *** [sapi/phpdbg/phpdbg] Error 1

What could it be caused by?
 
Mostly if your server don't do any custom thing, one problem could be not have enought memory.
 
Back
Top