Cannot link to readline

Judah Jacobson judah.jacobson at gmail.com
Thu Mar 6 04:19:25 EST 2008


On Thu, Mar 6, 2008 at 12:36 AM, Yitzchak Gale <gale at sefer.org> wrote:
> I wrote:
>  >> 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
> name: readline
> version: 1.0

Ah, OK.  The readline package was changed in 6.8 to link with the
framework automatically (it did not in 6.6.2 and earlier).

If you don't want to update ghc, you can just download version 1.0.1
of readline from hackage and install it manually:
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/readline-1.0.1.0

Hope that helps,
-Judah


More information about the Libraries mailing list