Solution to php compilation errors: First open and edit the Makefile; then find the "EXTRA_LIBS = ..... -lcrypt" item; then add "-liconv"; and finally re-make.
Recommended: "PHP Video Tutorial"
php compilation error
[Error description]
When Make compiles and installs php, collect2: ld returned 1 exit status make
[Solution]
Edit the Makefile at about line 144: EXTRA_LIBS = ..... -lcrypt Add -liconv at the end and remake
The above is the detailed content of What to do if there is an error in php compilation. For more information, please follow other related articles on the PHP Chinese website!