diff --git a/build.sh b/build.sh index 70dddea..f244cd9 100755 --- a/build.sh +++ b/build.sh @@ -25,6 +25,10 @@ case "$OSTYPE" in echo 'Error: Homebrew is not installed. Please install it.' >&2 exit 1 fi + if ! [ -x "$(command -v clang)" ]; then + echo 'Error: clang not found. Please run xcode-select --install.' >&2 + exit 1 + fi export LDFLAGS="-L/opt/homebrew/opt/openssl@3/lib" export CPPFLAGS="-I/opt/homebrew/opt/openssl@3/include" ;; diff --git a/setup.sh b/setup.sh index 950c492..6e718c9 100755 --- a/setup.sh +++ b/setup.sh @@ -8,6 +8,10 @@ case "$OSTYPE" in echo 'Error: Homebrew is not installed. Please install it.' >&2 exit 1 fi + if ! [ -x "$(command -v clang)" ]; then + echo 'Error: clang not found. Please run xcode-select --install.' >&2 + exit 1 + fi brew install pkg-config openssl@3 poppler python ;; *linux*)