When trying to install PECL module solr it errors due to a path prefix not allowing the libxml path to be found.
The error seen will be
fatal error: libxml/parser.h: No such file or directory
NOTE: Before getting this error the libcurl-devel rpm needed to be installed with
yum install libcurl-devel
The work around is to link the folder to where the libxml library will be found. This is simply done by doing
ln -s /usr/include/libxml2/libxml /usr/include/
and then afterward the solr PECL module will compile and be installed.