From acad2e01e5f2c87efcf172e88fb4813a0b73508a Mon Sep 17 00:00:00 2001 From: Moshe David Date: Tue, 26 May 2020 00:28:09 +0300 Subject: [PATCH] w (#394) Co-authored-by: modav --- install_dependencies.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) mode change 100644 => 100755 install_dependencies.sh diff --git a/install_dependencies.sh b/install_dependencies.sh old mode 100644 new mode 100755 index 6fae78066eb..ca31972c3ba --- a/install_dependencies.sh +++ b/install_dependencies.sh @@ -22,6 +22,13 @@ yes_or_no() { # install dependencies if [ -f /etc/lsb-release ]; then # Ubuntu + host_cpu=$(uname -m) + if [ $host_cpu = x86_64 ]; then + x86_64_specific_packages="gcc-multilib g++-multilib" + else + x86_64_specific_packages="" + fi + sudo -E apt update sudo -E apt-get install -y \ build-essential \ @@ -32,8 +39,7 @@ if [ -f /etc/lsb-release ]; then ca-certificates \ git \ libboost-regex-dev \ - gcc-multilib \ - g++-multilib \ + $x86_64_specific_packages \ libgtk2.0-dev \ pkg-config \ unzip \