Skip to content

Commit 926a2bb

Browse files
author
Damian Rouson
authored
Merge pull request #636 from sourceryinstitute/update-to-GCC-8.3.0
Installer updates
2 parents 42d728f + 929ede4 commit 926a2bb

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

prerequisites/build-functions/build_and_install.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,13 @@ build_and_install()
3737
export cmake_binary_installer="${download_path}/cmake-${version_to_build}-Linux-x86_64.sh"
3838
${SUDO:-} mkdir -p "$install_path"
3939
chmod u+x "${cmake_binary_installer}"
40+
if [[ ! -z "${SUDO:-}" ]]; then
41+
info "You do not have write permissions to the installation path ${install_path}"
42+
info "If you have administrative privileges, enter your password to install ${package_to_build}"
43+
fi
4044
info "Installing Cmake with the following command: "
41-
info "\"${cmake_binary_installer}\" --prefix=\"$install_path\" --exclude-subdir"
42-
"${cmake_binary_installer}" --prefix="$install_path" --exclude-subdir
45+
info "${SUDO:-} \"${cmake_binary_installer}\" --prefix=\"$install_path\" --exclude-subdir"
46+
${SUDO:-} "${cmake_binary_installer}" --prefix="$install_path" --exclude-subdir
4347

4448
else # build from source
4549

prerequisites/build-functions/set_or_print_default_version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ set_or_print_default_version()
2727
# See http://stackoverflow.com/questions/1494178/how-to-define-hash-tables-in-bash
2828
package_version=(
2929
"cmake:3.10.0"
30-
"gcc:8.2.0"
30+
"gcc:8.3.0"
3131
"mpich:3.2"
3232
"wget:1.16.3"
3333
"flex:2.6.0"

0 commit comments

Comments
 (0)