[GHC] #11617: DYLD_LIBRARY_PATH ignored on Mac OS X 10.11.x

GHC ghc-devs at haskell.org
Tue Mar 22 03:14:32 UTC 2016


#11617: DYLD_LIBRARY_PATH ignored on Mac OS X 10.11.x
---------------------------------+--------------------------------------
        Reporter:  borsboom      |                Owner:
            Type:  bug           |               Status:  new
        Priority:  normal        |            Milestone:
       Component:  hsc2hs        |              Version:  7.10.3
      Resolution:                |             Keywords:
Operating System:  MacOS X       |         Architecture:  x86_64 (amd64)
 Type of failure:  None/Unknown  |            Test Case:
      Blocked By:                |             Blocking:
 Related Tickets:                |  Differential Rev(s):
       Wiki Page:                |
---------------------------------+--------------------------------------

Comment (by gershomb):

 Having done a little investigating, it seems to me that the real answer is
 "you shouldn't need to set DYLD_LIBRARY_PATH" . Indeed I don't think there
 are any ''normal'' workflows on OS X that should require this. The issue
 would only arise when linking to an external lib that inserts a path on
 DYLD_LIBRARY_PATH, and such libs are now effectively basically broken
 throughout the OS X ecosystem.

 Here are a few articles that recommend against setting it (ever) as taken
 from a thread discussing this issue on Oracle bindings for node:
 * https://blogs.oracle.com/ali/entry/avoiding_ld_library_path_the
 * http://linuxmafia.com/faq/Admin/ld-lib-path.html

 We may want to add a FAQ page for manual workarounds, but my gut says
 "don't fix, and recommend to those who encounter this that they should
 reconsider why they need DYLD_LIBRARY_PATH to begin with".

 That said, I'm not one of the people "feeling the pain" here, so opinions
 may vary.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11617#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list