Friday, July 25, 2008

PHP Compilation Errors and Solutions.

Additional solutions. Previously i posted some solutions regarding some errors in compiling PHP from source. Some errors below were posted in my previous postings.

---------------------------
checking for bison version... invalid
configure: warning: bison versions supported for regeneration of the Zend/PHP parsers: 1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 (found: none).
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: line 3276: lex: command not found

solution: flex-2.5.4a-33.i386.rpm
---------------------------
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
checking for xml2-config path...
configure: error: xml2-config not found. Please check your libxml2 installation.

solution: libxml2-devel-2.6.16-6.i386.rpm
---------------------------
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for fabsf... yes
checking for floorf... yes
configure: error: libjpeg.(a|so) not found.

solution:libjpeg-devel-6b-33.i386.rpm
---------------------------

checking for jpeg_read_header in -ljpeg... yes
configure: error: libpng.(a|so) not found.

libpng-devel-1.2.7-1.el4.2.i386.rpm
---------------------------
checking for png_write_image in -lpng... yes
If configure fails try --with-xpm-dir=
configure: error: freetype2 not found!

Solution: up2date freetype-devel
---------------------------

checking for LDAP support... yes, shared
checking for LDAP Cyrus SASL support... no
configure: error: Cannot find ldap.h

solution: up2date openldap-devel
---------------------------


2 comments:

Unknown said...

Thanks for posting the solution to the xml2-config issue. I had been searching for a fix for hours!

Jam said...

Kalbo! :D wahehehehe

The On Demand Global Workforce - oDesk
Google