File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,16 @@ if [ $OS = "Darwin" ]; then
88 brew install cmake eigen boost tbb
99 brew install autoconf automake
1010else
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
You can’t perform that action at this time.
0 commit comments