You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/faq.md
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -281,3 +281,27 @@ collect2: error: ld returned 1 exit status
281
281
#### Where does the output from `--ghc-options=-ddump-splices` (and other `-ddump*` options) go?
282
282
283
283
These are written to `*.dump-*` files inside the package's `.stack-work` directory.
284
+
285
+
#### Why is DYLD_LIBRARY_PATH ignored?
286
+
287
+
<a name="disable-rootless"></a><a name="dyld-library-path-ignored"></a>If you
288
+
are on Mac OS X 10.11 ("El Capitan") or later, System Integrity Protection
289
+
(a.k.a. "rootless")
290
+
[prevents the `DYLD_LIBRARY_PATH` environment variable from being passed to sub-processes](https://github.com/commercialhaskell/stack/issues/1161).
291
+
The only workaround we are aware of is
292
+
[disabling System Integrity Protection](http://osxdaily.com/2015/10/05/disable-rootless-system-integrity-protection-mac-os-x/):
293
+
294
+
1. Reboot into recovery mode (hold down Cmd-R at boot)
295
+
2. Open a terminal (select __Terminal__ from the __Utilities__ menu)
296
+
3. Run `csrutil disable; reboot`
297
+
298
+
Note that this reduces the security of your system.
299
+
300
+
#### Why do I get a `/usr/bin/ar: permission denied` error?
301
+
302
+
<a name="usr-bin-ar-permission-denied"></a>On OS X 10.11 ("El Capitan") and
303
+
later, this is
304
+
[caused by System Integrity Protection (a.k.a. "rootless")](https://github.com/commercialhaskell/stack/issues/563).
305
+
GHC 7.10.2 includes a fix, so this only effects users of GHC 7.8.4. If you
306
+
cannot upgrade to GHC 7.10.2, you can work around it by
307
+
[disabling System Integrity Protection](#rootless)
0 commit comments