The error would be useful, too...
As for getting a php binary, the compile.sh script is pretty straightforward. Just run ./compile.sh -j 4 -f -u -g -l.
Well guess who's gonna congratulate you on that day :D
If you don't know how to fix this by yourself, it's a sure sign that you shouldn't be running it from source to start with.
Separate names with a comma.