Page MenuHomePhabricator

RHEL Install script does not always install gcc if needed
Closed, DuplicatePublic

Description

The install script for RHEL systems does not install gcc on version 6+ system in it's yum command.

if [[ $RHEL_MAJOR_VER == 5 ]]
then
  # RHEL 5's "php" package is actually 5.1. The "php53" package won't let us install php-pecl-apc.
  # (it tries to pull in php 5.1 stuff) ...
  yum repolist | grep -i epel
  if [ $? -ne 0 ]; then
    echo "It doesn't look like you have the EPEL repo enabled. We are to add it"
    echo "for you, so that we can install git."
    $SUDO rpm -Uvh http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
  fi
  YUMCOMMAND="$SUDO yum install httpd git php53 php53-cli php53-mysql php53-process php53-devel php53-gd gcc wget make pcre-devel mysql-server"
else
  # RHEL 6+ defaults with php 5.3
  YUMCOMMAND="$SUDO yum install httpd git php php-cli php-mysql php-process php-devel php-gd php-pecl-apc php-pecl-json php-mbstring mysql-server"
fi