Problem using Text.Regex on OS X.

Peter Sumskas peter at activebilling.com.au
Sun Jan 25 23:29:54 UTC 2015


Hi,

I'm new to Haskell so I'm not sure how to solve this issue, yet. I was
directed to this list from the IRC channel.

Here's the issue:

Using GHCi on OS X:

Prelude Data.Text> :m Text.Regex
Prelude Text.Regex> let r = mkRegex "_"
... eliding successful "Loading package ..." lines ...
Loading package regex-compat-0.95.1 ... can't load .so/.DLL for:
/Library/Haskell/ghc-7.8.3-x86_64/lib/regex-compat-0.95.1/libHSregex-compat-0.95.1-ghc7.8.3.dylib
(dlopen(/Library/Haskell/ghc-7.8.3-x86_64/lib/regex-compat-0.95.1/libHSregex-compat-0.95.1-ghc7.8.3.dylib,
9): Library not loaded: @rpath/libHSmtl-2.1.3.1-ghc7.8.3.dylib
  Referenced from:
/Library/Haskell/ghc-7.8.3-x86_64/lib/regex-compat-0.95.1/libHSregex-compat-0.95.1-ghc7.8.3.dylib
  Reason: image not found)

After running otool over the regex-compat dylib I can see lines like:

...
Load command 24
          cmd LC_RPATH
      cmdsize 80
         path
/Users/mark/Projects/hp/build/package/mtl-2.1.3.1/build/dist/build (offset
12)
...

Which is not a path that is relevant to my installation. It was suggested
that this may be an error in the way packages are being built for OS X.

Whatever the cause, I'm bringing it to the attention of this list in order
to gain information on what course to take in addressing this issue.

Thanks for your help.

Kind regards,

Peter Sumskas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20150126/608ed215/attachment.html>


More information about the Libraries mailing list