Skip to content
Permalink
Browse files

update inc/php_configure.inc double check that libxml2-devel is insta…

…lled

prior to php-fpm compile https://community.centminmod.com/posts/17398/
  • Loading branch information...
centminmod committed Aug 13, 2015
1 parent b86d228 commit 8c98b38788a7eebdbe9a8d9de5dc1ba97ee5f14c
Showing with 24 additions and 0 deletions.
  1. +24 −0 inc/php_configure.inc
@@ -164,6 +164,30 @@ if [[ "$CENTOSVER" = '6.0' || "$CENTOSVER" = '6.1' || "$CENTOSVER" = '6.2' || "$
done
fi

if [[ ! -f /usr/bin/xml2-config ]]; then

# double check libxml2 has been installed
CHECKXML='libxml2-devel'

declare -a arraysxml
arraysxml=(${CHECKXML})

for pkgx in ${arraysxml[@]}
do
echo Processing package: $pkgx
XMLRPMCHECKS=`yum${CACHESKIP} -q list installed $pkgx | awk '/Installed/ {print $1}' &>/dev/null`
#echo $XMLRPMCHECKS
if [ "$XMLRPMCHECKS" != 'Installed' ]; then
echo "----------------------------------------------------------------------------------"
cecho "Installing $pkgx" $boldyellow
echo "----------------------------------------------------------------------------------"
yum${CACHESKIP} -q -y install $pkgx
# yum${CACHESKIP} -q list $pkgx
echo "----------------------------------------------------------------------------------"
fi
done
fi

fi

# set_intelflags

0 comments on commit 8c98b38

Please sign in to comment.
You can’t perform that action at this time.