I recently fixed an error “addMessage failed for log slot XML” while accessing OpenCA pub page. However that was an older version of OpenCA. Today I decided to install the latest version on CentOS7 virtual machine and ran into a Perl error – “PERL XML-Parser module requires expat-devel”.
Below is the snapshot of the error:
checking Expat devel... ERROR! *** ERROR::The PERL XML-Parser module requires the expat-devel one (/usr/include/expat.h)!
If you are getting an error “PERL XML-Parser module requires expat-devel” while installing OpenCA, then here’s how you can solve it.
How to fix PERL XML-Parser module requires expat-devel
From the error, I can understand that the Perl module XML::Parser requires expat-devel which is expected to provide expat.h header file. So to fix this error, I just need to install expat-devel module using the below command:
sudo yum install expat-devel
That’s it 🙂