File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
prerequisites/build-functions Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,13 @@ build_and_install()
37
37
export cmake_binary_installer=" ${download_path} /cmake-${version_to_build} -Linux-x86_64.sh"
38
38
${SUDO:- } mkdir -p " $install_path "
39
39
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
40
44
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
43
47
44
48
else # build from source
45
49
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ set_or_print_default_version()
27
27
# See http://stackoverflow.com/questions/1494178/how-to-define-hash-tables-in-bash
28
28
package_version=(
29
29
" cmake:3.10.0"
30
- " gcc:8.2 .0"
30
+ " gcc:8.3 .0"
31
31
" mpich:3.2"
32
32
" wget:1.16.3"
33
33
" flex:2.6.0"
You can’t perform that action at this time.
0 commit comments