diff --git a/install.sh b/install.sh index cf68782a5d118737f2f9675fa63d876116254ab6..6bb657d034774ec4ab58c3f8a1dff16f3eac5431 100644 --- a/install.sh +++ b/install.sh @@ -5,12 +5,12 @@ echo "************************************************************************** echo "(0/3) Checking all prerequistes. (git cmake gcc g++ pkg-config paraview)" echo "*********************************************************************************************" -# check some prerequistes -for PRGRM in git cmake gcc g++ pkg-config paraview; do - if ! [ -x "$(command -v $PRGRM)" ]; then - echo "Error: $PRGRM is not installed." >&2 - exit 1 - fi +# check some prerequisites +for pkg in git cmake gcc g++ pkg-config paraview libcgal-dev; do + if [ $(dpkg-query -W -f='${Status}' $pkg 2>/dev/null | grep -c "ok installed") -eq 0 ]; then + echo "Error: $pkg is not installed." >&2 + exit 1 + fi done # check gcc version for C++17 support