Just some random compilation errors and their solutions.
Random FYI:
Apache is pure C code (ie: you just need gcc).
PHP is C++ code (ie: you need gcc-c++).
PHP Compile Error
Compiling php-5.2.x on Fedora
Problem:
?./configure? error during PHP installation process:
Error Message: configure: error: installation or configuration problem: C++ compiler cannot create executables.
Logs show: gcc: installation problem, cannot exec `cc1plus': No such file or directory.
Resolution:
You're missing the C++ compiler. Install gcc-c++
Fedora Core: yum install "gcc-c++"
Problem:
PHP won't compile.
Error Message:
lex: command not found
checking lex output file root... ./configure: line 3246: lex: command not found
configure: error: cannot find output from lex; giving up
Resolution:
You need the Flex libraries
Fedora Core: yum Install Flex




