From 73e31d79b106b036bef4e73e6c9bfc1b5c250a40 Mon Sep 17 00:00:00 2001 From: Alex Garibay Date: Thu, 1 Nov 2018 12:08:47 -0500 Subject: [PATCH 1/3] Add C compiler tools --- modules/stack/libexec/init.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/stack/libexec/init.sh b/modules/stack/libexec/init.sh index 8b7751f..944ebfd 100755 --- a/modules/stack/libexec/init.sh +++ b/modules/stack/libexec/init.sh @@ -67,7 +67,10 @@ if ! which node >/dev/null; then log "Installing nodejs.." yum --enablerepo=epel install -y nodejs >"$LOG" fi - +if ! which gcc >/dev/null; then + log "Installing C compiling tools.." + yum --enablerepo=epel group install -y "Development Tools" >"$LOG" +fi log "Determining region this instance is in.." REGION="$(curl -s $DYNDATA_URL/instance-identity/document | jq -r '.region')" From 7f82da4d737f2ea4808cf085817431ac779edffb Mon Sep 17 00:00:00 2001 From: Alex Garibay Date: Thu, 1 Nov 2018 13:05:49 -0500 Subject: [PATCH 2/3] Add additional compiler dependency --- modules/stack/libexec/init.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/stack/libexec/init.sh b/modules/stack/libexec/init.sh index 944ebfd..4412357 100755 --- a/modules/stack/libexec/init.sh +++ b/modules/stack/libexec/init.sh @@ -70,6 +70,7 @@ fi if ! which gcc >/dev/null; then log "Installing C compiling tools.." yum --enablerepo=epel group install -y "Development Tools" >"$LOG" + yum --enablerepo=epel install -y libgmp3-dev > "$LOG" fi log "Determining region this instance is in.." From 14735d4257904c44907daf9cf5548c6615cccf6a Mon Sep 17 00:00:00 2001 From: Andrew Cravenho Date: Tue, 6 Nov 2018 17:14:15 -0500 Subject: [PATCH 3/3] Remove unsupported libgmp3-dev and add gmp-devel --- modules/stack/libexec/init.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/stack/libexec/init.sh b/modules/stack/libexec/init.sh index 4412357..cfd0cff 100755 --- a/modules/stack/libexec/init.sh +++ b/modules/stack/libexec/init.sh @@ -70,7 +70,10 @@ fi if ! which gcc >/dev/null; then log "Installing C compiling tools.." yum --enablerepo=epel group install -y "Development Tools" >"$LOG" - yum --enablerepo=epel install -y libgmp3-dev > "$LOG" +fi +if ! which gmp-devel >/dev/null; then + log "Installing gmp-devel.." + yum --enablerepo=epel install -y gmp-devel >"$LOG" fi log "Determining region this instance is in.."