xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution

今天在Centos8上编译php7.2.9的时候遭遇下面错误:

xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution这个问题,

原因是没安装libxslt libxslt-devel软件包

下面是安装方法:

sudo yum -y install libxslt libxslt-devel