Skip to content

Commit 9af9918

Browse files
authored
Update install deps required
1 parent fb4f6d4 commit 9af9918

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

scripts/install_deps_req.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,16 @@ if [ $OS = "Darwin" ]; then
88
brew install cmake eigen boost tbb
99
brew install autoconf automake
1010
else
11-
echo "Installing for Ubuntun via apt-get"
11+
# check if we have Ubuntu or not
12+
distro_str="$(cat /etc/*-release | grep -s DISTRIB_ID)"
13+
distro=$(echo $distro_str | cut -f2 -d'=')
14+
15+
if [ "$distro" != "Ubuntu" ]; then
16+
echo "ERROR: We need an Ubuntu system to use this script"
17+
exit 1
18+
fi
19+
20+
echo "Installing for Ubuntu via apt-get"
1221
sudo apt-get -qq update
1322
# install Eigen 3, Boost
1423
sudo apt-get --yes --force-yes install cmake libeigen3-dev libtbb-dev libboost-serialization-dev libboost-filesystem-dev libboost-test-dev libboost-program-options-dev libboost-thread-dev libboost-regex-dev

0 commit comments

Comments
 (0)