Error install php

#1
Hello. I'm trying to install php 5.6 and it gives me this error. How to solve it?

[1mConfiguring extensions[m
checking size of long... (cached) 8
checking size of int... (cached) 4
checking for int32_t... yes
checking for uint32_t... yes
checking for sys/types.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for strtoll... yes
checking for atoll... yes
checking for strftime... (cached) yes
checking which regex library to use... php
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.
**ERROR** Could not configure PHP build


**MAIN_STATUS** retrieved from /usr/local/lsws/phpbuild/buildphp_1709043122.3.progress
Start building PHP 5.6.40 with LSAPI
Configuring PHP build (2-3 minutes)
**ERROR** Could not configure PHP build
 

Cold-Egg

Administrator
#6
Just a reminder, you may encounter other new issues since some old necessary dependency packages are not easy to install on the Alamalinux 8.
 
Top