From b3a114a805e08d1db996d5b31babfdff7c8efa6c Mon Sep 17 00:00:00 2001 From: superpoussin22 Date: Mon, 12 Aug 2019 14:23:02 +0200 Subject: [PATCH] add macOS info command-line tools must be installed to be able to install headers --- setup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index b9dbb22b..d5b256b7 100755 --- a/setup.sh +++ b/setup.sh @@ -29,7 +29,8 @@ if [[ "$unamestr" == 'Darwin' ]]; then is_installed=$(pkgutil --pkgs=com.apple.pkg.macOS_SDK_headers_for_macOS_${current_macos_version}) if [ -z "$is_installed" ]; then if [ "$major" -ge "10" ] && [ "$minor" -ge "14" ]; then - echo 'Please install macOS headers.' + echo 'Please install command-line tools and macOS headers.' + echo 'xcode-select --install' echo "sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_${current_macos_version}.pkg -target /" exit 1 fi