diff options
author | Hugh Perkins <hughperkins@gmail.com> | 2016-05-17 03:22:54 +0300 |
---|---|---|
committer | Soumith Chintala <soumith@gmail.com> | 2016-05-17 03:22:54 +0300 |
commit | 2f020918f561c108bb5b95e561b63dbbe635ec62 (patch) | |
tree | 8a0a9a86589480f48e9a2bd5e2d6743414658bfc /install-deps | |
parent | ba34004a7a48806bf4a6e88ecfc5fbada5efe636 (diff) |
check for gcc version *after* installing it (#114)
Diffstat (limited to 'install-deps')
-rwxr-xr-x | install-deps | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/install-deps b/install-deps index dd72ccd..13ac08f 100755 --- a/install-deps +++ b/install-deps @@ -152,6 +152,12 @@ elif [[ "$(uname)" == 'Linux' ]]; then libsox-fmt-all fi + sudo apt-get update + sudo apt-get install -y build-essential gcc g++ curl \ + cmake libreadline-dev git-core libqt4-dev libjpeg-dev \ + libpng-dev ncurses-dev imagemagick libzmq3-dev gfortran \ + unzip gnuplot gnuplot-x11 ipython + gcc_major_version=$(gcc --version | grep ^gcc | awk '{print $4}' | \ cut -c 1) if [[ $gcc_major_version == '5' ]]; then @@ -159,12 +165,6 @@ elif [[ "$(uname)" == 'Linux' ]]; then sudo apt-get install -y gcc-4.9 libgfortran-4.9-dev g++-4.9 fi - sudo apt-get update - sudo apt-get install -y build-essential gcc g++ curl \ - cmake libreadline-dev git-core libqt4-dev libjpeg-dev \ - libpng-dev ncurses-dev imagemagick libzmq3-dev gfortran \ - unzip gnuplot gnuplot-x11 ipython - if [[ $ubuntu_major_version -lt '14' ]]; then # Install from source after installing git and build-essential install_openblas || true |