From 4f1d14e17663461edcdef2a066595f7bb30e9c7a Mon Sep 17 00:00:00 2001 From: Philipp Moritz Date: Thu, 5 Jul 2018 23:46:55 -0700 Subject: [PATCH] improve error message when flex or bison is not installed (#2355) --- thirdparty/scripts/build_arrow.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/thirdparty/scripts/build_arrow.sh b/thirdparty/scripts/build_arrow.sh index d3b8c881d..fb6fd67a1 100755 --- a/thirdparty/scripts/build_arrow.sh +++ b/thirdparty/scripts/build_arrow.sh @@ -56,6 +56,16 @@ if [[ ! -d $TP_DIR/../python/ray/pyarrow_files/pyarrow || \ git clone https://github.com/apache/arrow.git "$TP_DIR/build/arrow" fi + if ! [ -x "$(command -v bison)" ]; then + echo 'Error: bison is not installed.' >&2 + exit 1 + fi + + if ! [ -x "$(command -v flex)" ]; then + echo 'Error: flex is not installed.' >&2 + exit 1 + fi + pushd $TP_DIR/build/arrow git fetch origin master # The PR for this commit is https://github.com/apache/arrow/pull/2065. We