Skip to content

Commit

Permalink
doc: FAQ entries for #1161 and #563
Browse files Browse the repository at this point in the history
  • Loading branch information
borsboom committed Nov 26, 2015
1 parent f729c9a commit 77e1ac9
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
24 changes: 24 additions & 0 deletions doc/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,3 +281,27 @@ collect2: error: ld returned 1 exit status
#### Where does the output from `--ghc-options=-ddump-splices` (and other `-ddump*` options) go?
These are written to `*.dump-*` files inside the package's `.stack-work` directory.
#### Why is DYLD_LIBRARY_PATH ignored?
<a name="disable-rootless"></a><a name="dyld-library-path-ignored"></a>If you
are on Mac OS X 10.11 ("El Capitan") or later, System Integrity Protection
(a.k.a. "rootless")
[prevents the `DYLD_LIBRARY_PATH` environment variable from being passed to sub-processes](https://github.com/commercialhaskell/stack/issues/1161).
The only workaround we are aware of is
[disabling System Integrity Protection](http://osxdaily.com/2015/10/05/disable-rootless-system-integrity-protection-mac-os-x/):
1. Reboot into recovery mode (hold down Cmd-R at boot)
2. Open a terminal (select __Terminal__ from the __Utilities__ menu)
3. Run `csrutil disable; reboot`
Note that this reduces the security of your system.
#### Why do I get a `/usr/bin/ar: permission denied` error?
<a name="usr-bin-ar-permission-denied"></a>On OS X 10.11 ("El Capitan") and
later, this is
[caused by System Integrity Protection (a.k.a. "rootless")](https://github.com/commercialhaskell/stack/issues/563).
GHC 7.10.2 includes a fix, so this only effects users of GHC 7.8.4. If you
cannot upgrade to GHC 7.10.2, you can work around it by
[disabling System Integrity Protection](#rootless)
8 changes: 8 additions & 0 deletions doc/install_and_upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ such.

## Mac OS X

Note: if you are on OS X 10.11 ("El Capitan") or later, System Integrity
Protection (a.k.a. "rootless") can cause two problems:

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

See the above links for workarounds.

### Using Homebrew

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

0 comments on commit 77e1ac9

Please sign in to comment.