Skip to content

Commit 037ca71

Browse files
committed
Add note about installing SDK headers on macOs >= 10.14
1 parent e390033 commit 037ca71

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

doc/install_and_upgrade.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ After installation, running `stack setup` might fail with `configure: error: can
8989

9090
xcode-select --install
9191

92+
Starting with macOs 10.14 (Mojave) running `xcode-select --install` [might not be enough](https://forums.developer.apple.com/thread/104296). You will need to install additional headers by running:
93+
94+
cd /Library/Developer/CommandLineTools/Packages/
95+
open macOS_SDK_headers_for_macOS_10.14.pkg
96+
9297
If you are on OS X 10.11 ("El Capitan") and encounter either of these
9398
problems, see the linked FAQ entries:
9499

etc/scripts/get-stack.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,9 @@ do_osx_install() {
291291
info "Using generic bindist..."
292292
info ""
293293
install_64bit_osx_binary
294-
info "NOTE: You may need to run 'xcode-select --install' to set"
295-
info " up the Xcode command-line tools, which Stack uses."
294+
info "NOTE: You may need to run 'xcode-select --install' and/or"
295+
info " 'open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg'"
296+
info " to set up the Xcode command-line tools, which Stack uses."
296297
info ""
297298
}
298299

0 commit comments

Comments
 (0)