Cannot compile PHP 5.6.x

#1
Detailed error.
Code:
checking whether to enable truetype string function in GD... no
checking whether to enable JIS-mapped Japanese font support in GD... no
If configure fails try --with-vpx-dir=<DIR>
If configure fails try --with-jpeg-dir=<DIR>
configure: error: png.h not found.
**ERROR** Could not configure PHP build
 
#2
With PHP 5.6.4, I got this error:
Code:
checking whether to enable bc style precision math functions... yes
checking for BZip2 support... yes
checking for BZip2 in default path... not found
configure: error: Please reinstall the BZip2 distribution
**ERROR** Could not configure PHP build
 
#3
Fixed now with all of this:
Code:
yum install bzip2-devel curl-devel libpng-devel db4-devel libXpm-devel gmp-devel libc-client-devel openldap-devel unixODBC-devel aspell-devel net-snmp-devel libxslt-devel libxml2-devel pcre-devel t1lib-devel.x86_64 libmcrypt-devel.x86_64 libtidy libtidy-devel
 
#4
Now this error pop up:
Code:
/bin/sh /usr/local/lsws/phpbuild/php-5.6.4/libtool --silent --preserve-dup-deps --mode=compile cc -I/usr/local/lsws/phpbuild/php-5.6.4/ext/fileinfo/libmagic -Iext/fileinfo/ -I/usr/local/lsws/phpbuild/php-5.6.4/ext/fileinfo/ -DPHP_ATOM_INC -I/usr/local/lsws/phpbuild/php-5.6.4/include -I/usr/local/lsws/phpbuild/php-5.6.4/main -I/usr/local/lsws/phpbuild/php-5.6.4 -I/usr/local/lsws/phpbuild/php-5.6.4/ext/date/lib -I/usr/local/lsws/phpbuild/php-5.6.4/ext/ereg/regex -I/usr/include/libxml2 -I/usr/local/lsws/phpbuild/php-5.6.4/ext/mbstring/oniguruma -I/usr/local/lsws/phpbuild/php-5.6.4/ext/mbstring/libmbfl -I/usr/local/lsws/phpbuild/php-5.6.4/ext/mbstring/libmbfl/mbfl -I/usr/local/lsws/phpbuild/php-5.6.4/ext/sqlite3/libsqlite -I/usr/local/lsws/phpbuild/php-5.6.4/TSRM -I/usr/local/lsws/phpbuild/php-5.6.4/Zend    -I/usr/include -g -O2 -fvisibility=hidden  -c /usr/local/lsws/phpbuild/php-5.6.4/ext/fileinfo/libmagic/apprentice.c -o ext/fileinfo/libmagic/apprentice.lo
cc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1
**ERROR** Could not compile PHP
 
#6
and now zendopcache-7.0.3 error.
Code:
Compiling OPcache extension
/bin/sh /usr/local/lsws/phpbuild/php-5.6.4/zendopcache-7.0.3/libtool --mode=compile cc  -I. -I/usr/local/lsws/phpbuild/php-5.6.4/zendopcache-7.0.3 -DPHP_ATOM_INC -I/usr/local/lsws/phpbuild/php-5.6.4/zendopcache-7.0.3/include -I/usr/local/lsws/phpbuild/php-5.6.4/zendopcache-7.0.3/main -I/usr/local/lsws/phpbuild/php-5.6.4/zendopcache-7.0.3 -I/usr/local/lsws/lsphp5/include/php -I/usr/local/lsws/lsphp5/include/php/main -I/usr/local/lsws/lsphp5/include/php/TSRM -I/usr/local/lsws/lsphp5/include/php/Zend -I/usr/local/lsws/lsphp5/include/php/ext -I/usr/local/lsws/lsphp5/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /usr/local/lsws/phpbuild/php-5.6.4/zendopcache-7.0.3/ZendAccelerator.c -o ZendAccelerator.lo
mkdir .libs
cc -I. -I/usr/local/lsws/phpbuild/php-5.6.4/zendopcache-7.0.3 -DPHP_ATOM_INC -I/usr/local/lsws/phpbuild/php-5.6.4/zendopcache-7.0.3/include -I/usr/local/lsws/phpbuild/php-5.6.4/zendopcache-7.0.3/main -I/usr/local/lsws/phpbuild/php-5.6.4/zendopcache-7.0.3 -I/usr/local/lsws/lsphp5/include/php -I/usr/local/lsws/lsphp5/include/php/main -I/usr/local/lsws/lsphp5/include/php/TSRM -I/usr/local/lsws/lsphp5/include/php/Zend -I/usr/local/lsws/lsphp5/include/php/ext -I/usr/local/lsws/lsphp5/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/lsws/phpbuild/php-5.6.4/zendopcache-7.0.3/ZendAccelerator.c  -fPIC -DPIC -o .libs/ZendAccelerator.o
/usr/local/lsws/phpbuild/php-5.6.4/zendopcache-7.0.3/ZendAccelerator.c:39:35: error: TSRM/tsrm_virtual_cwd.h: No such file or directory
/usr/local/lsws/phpbuild/php-5.6.4/zendopcache-7.0.3/ZendAccelerator.c: In function ‘accel_fast_zval_ptr_dtor’:
/usr/local/lsws/phpbuild/php-5.6.4/zendopcache-7.0.3/ZendAccelerator.c:2199: error: ‘IS_CONSTANT_ARRAY’ undeclared (first use in this function)
/usr/local/lsws/phpbuild/php-5.6.4/zendopcache-7.0.3/ZendAccelerator.c:2199: error: (Each undeclared identifier is reported only once
/usr/local/lsws/phpbuild/php-5.6.4/zendopcache-7.0.3/ZendAccelerator.c:2199: error: for each function it appears in.)
make: *** [ZendAccelerator.lo] Error 1
**ERROR** Could not compile OPcache extension
 
#16
You could leave it as it is, but just denote that it is only for versions of PHP prior to 5.5. Then for 5.5 -> have --enabled-opcache as a default (but I think it's already created when it's compiled anyway).

And I might be interested.. but then I leech traffic away from my forum's guide!
 
Top