Skip to content

Commit 859b78d

Browse files
committed
FAQ/install: adjust wording around OS X SIP (#1799)
1 parent 3e0538a commit 859b78d

File tree

2 files changed

+15
-19
lines changed

2 files changed

+15
-19
lines changed

doc/faq.md

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -294,27 +294,25 @@ These are written to `*.dump-*` files inside the package's `.stack-work` directo
294294
295295
#### Why is DYLD_LIBRARY_PATH ignored?
296296
297-
<a name="disable-rootless"></a><a name="dyld-library-path-ignored"></a>If you
298-
are on Mac OS X 10.11 ("El Capitan") or later, System Integrity Protection
299-
(a.k.a. "rootless")
300-
[prevents the `DYLD_LIBRARY_PATH` environment variable from being passed to sub-processes](https://github.com/commercialhaskell/stack/issues/1161).
301-
The only workaround we are aware of is
302-
[disabling System Integrity Protection](http://osxdaily.com/2015/10/05/disable-rootless-system-integrity-protection-mac-os-x/):
297+
<a name="dyld-library-path-ignored"></a>If you
298+
are on Mac OS X 10.11 ("El Capitan") or later, there are upstream issues which
299+
[prevents the `DYLD_LIBRARY_PATH` environment variable from being passed to GHC](https://github.com/commercialhaskell/stack/issues/1161)
300+
when System Integrity Protection (a.k.a. "rootless") is enabled. The only
301+
workaround we are aware of is
302+
[disabling System Integrity Protection](http://osxdaily.com/2015/10/05/disable-rootless-system-integrity-protection-mac-os-x/).
303303
304-
1. Reboot into recovery mode (hold down Cmd-R at boot)
305-
2. Open a terminal (select __Terminal__ from the __Utilities__ menu)
306-
3. Run `csrutil disable; reboot`
307-
308-
Note that this reduces the security of your system.
304+
**WARNING: Disabling SIP will severely reduce the security of your system, so only do this if absolutely necessary!**
309305
310306
#### Why do I get a `/usr/bin/ar: permission denied` error?
311307
312-
<a name="usr-bin-ar-permission-denied"></a>On OS X 10.11 ("El Capitan") and
313-
later, this is
314-
[caused by System Integrity Protection (a.k.a. "rootless")](https://github.com/commercialhaskell/stack/issues/563).
308+
<a name="usr-bin-ar-permission-denied"></a>If you are on OS X 10.11 ("El Capitan") or
309+
later, GHC 7.8.4 is
310+
[incompatible with System Integrity Protection (a.k.a. "rootless")](https://github.com/commercialhaskell/stack/issues/563).
315311
GHC 7.10.2 includes a fix, so this only effects users of GHC 7.8.4. If you
316312
cannot upgrade to GHC 7.10.2, you can work around it by
317-
[disabling System Integrity Protection](#disable-rootless)
313+
[disabling System Integrity Protection](http://osxdaily.com/2015/10/05/disable-rootless-system-integrity-protection-mac-os-x/).
314+
315+
**WARNING: Disabling SIP will severely reduce the security of your system, so only do this if absolutely necessary!**
318316
319317
#### Why is the `--` argument separator ignored in Windows PowerShell
320318

doc/install_and_upgrade.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,12 @@ such.
5454

5555
## Mac OS X
5656

57-
Note: if you are on OS X 10.11 ("El Capitan") or later, System Integrity
58-
Protection (a.k.a. "rootless") can cause two problems:
57+
Note: if you are on OS X 10.11 ("El Capitan") and encounter either of these
58+
problems, see the linked FAQ entries.
5959

6060
* [GHC 7.8.4 fails with `/usr/bin/ar: permission denied`](faq.html#usr-bin-ar-permission-denied)
6161
* [DYLD_LIBRARY_PATH is ignored](faq.html#dyld-library-path-ignored)
6262

63-
See the above FAQ links for workarounds.
64-
6563
### Using Homebrew
6664

6765
If you have a popular [brew](http://brew.sh/) tool installed, you can just do:

0 commit comments

Comments
 (0)