Skip to content

Commit

Permalink
changed to executable and bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sathayen committed Mar 20, 2018
1 parent 3b25390 commit ce8be89
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/qasm-simulator-cpp/build_dependencies.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#
# .. note:: Tested on Ubuntu 16.04 only.
# ------------------------------------------------------------------------------

set -ex
os_type=`uname -s`

# Check who is the current user.
Expand All @@ -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
Expand Down

0 comments on commit ce8be89

Please sign in to comment.