Cannot link to readline
gale at sefer.org
Thu Mar 6 03:36:27 EST 2008
>> On Mac OS X 10.4, I can't link programs that use readline
>> unless I explicitly specify the GNUreadline framework
>> on the ghc command line...
>> Note that this happens for programs that explicitly use
>> System.Console.Readline, not in general ghc use.
Manuel M T Chakravarty wrote:
>>> The readline package spec should include the framework
>>> option (if not, its a bug in the config of the readline package IMO).
Judah Jacobson wrote:
> I agree; the framework is supposed to be linked in automatically.
> Yitzchak, what version of GHC are you running? Is it a development
> build or a release?
The release version 6.6.1, via the (former) standard
download link on the GHC web site.
> Also, what is the output of the following commands?
$ ghc-pkg describe readline
maintainer: libraries at haskell.org
$ otool -L /usr/local/lib/ghc-6.6.1/ghc-6.6.1
version 5.0.0, current version 5.2.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0,
current version 88.3.7)
GMP.framework/Versions/A/GMP (compatibility version 7.0.0,
current version 7.0.0)
More information about the Libraries