From ce8be89dac7fc0a40e39f0dbbf67cf32c072a4d0 Mon Sep 17 00:00:00 2001 From: nsathaye Date: Tue, 20 Mar 2018 16:40:24 +0530 Subject: [PATCH] changed to executable and bug fix --- src/qasm-simulator-cpp/build_dependencies.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) mode change 100644 => 100755 src/qasm-simulator-cpp/build_dependencies.sh diff --git a/src/qasm-simulator-cpp/build_dependencies.sh b/src/qasm-simulator-cpp/build_dependencies.sh old mode 100644 new mode 100755 index 812b90377b92..39d0e6f38e95 --- a/src/qasm-simulator-cpp/build_dependencies.sh +++ b/src/qasm-simulator-cpp/build_dependencies.sh @@ -12,7 +12,7 @@ # # .. note:: Tested on Ubuntu 16.04 only. # ------------------------------------------------------------------------------ - +set -ex os_type=`uname -s` # Check who is the current user. @@ -34,11 +34,12 @@ elif [[ "$os_type" == "Linux" ]]; then echo "Installing dependencies on Linux" linux_distro=`cat /etc/*release | grep "ID_LIKE=" | cut -c9- | tr -d '"'` if [[ "$linux_distro" == "debian" ]]; then - ${SUDOCMD} apt-get + ${SUDOCMD} apt-get update ${SUDOCMD} apt-get install build-essential libblas-dev liblapack-dev elif [[ "$linux_distro" == "fedora" ]]; then - ${SUDOCMD} yum install devtoolset-6 blas blas-devel lapack lapack-devel - ${SUDOCMD} scl enable devtoolset-6 bash + ${SUDOCMD} yum update + ${SUDOCMD} yum install devtoolset-6 blas blas-devel lapack lapack-devel + ${SUDOCMD} scl enable devtoolset-6 bash else echo "Unsupported linux distro: $linux_distro" fi