Install PHP5 Error and Solutions Author: Tansf1, Compile PHP5 ./configure --with-apxs2 = / usr / local / apache2 / bin / apxs --with-mysql --enable-track-vars error Checking Lex Output file root ..../configure: line 2418: Lex: Command NOT FOUNDCONFIGURE: ERROR: Cannot Find Output from Lex; Giving Up
Solve installation FlexRPM-IVH Flex-2.5.4a-29.i386.rpm
2, the following error appears Checking LIBXML2 Install Dir ... NOCONFIGURE: ERROR: XML2-Config Not Found. Please check your libxml2 installation.
Install the following software package still unsolved problem RPM -UVH libxml2-2.5.10-6.i386.rpm libXML2-devel-2.5.10-6.i386.rpm zlib-wevel-1.1.4-8.1.i386.rpm
3, use the following compilation method, prohibit xml./configure --with-apxs2 = / usr / local / apache2 / bin / apxs --with-mysql --enable-track-vars --disable-simplexml --disable- LibXML - Disable-XML error Checking WHETER TO Install Pear ... YESCONFIGURE: Error: Pear Requires XML to be enabled. Add --enable-xml to the configure line. (or --disable-pear)
4, use the following compilation mode to successfully install ./configure --with-apxs2 = / usr / local / apache2 / bin / apxs --with-mysql --enable-track-vars --disable-simplexml --disable-libxml --Disable-xml --disable-pear
Of course, you have to run make make install.