[Haskell-cafe] Configuring cabal install readline on Snow Leopard
with MacPorts
Judah Jacobson
judah.jacobson at gmail.com
Tue Dec 29 03:14:33 EST 2009
On Mon, Dec 28, 2009 at 11:48 PM, Alexy Khrabrov <deliverable at gmail.com> wrote:
> I've tried to do cabal install readline on Snow Leopard with MacPorts and it fails with the infamous:
>
> $ cabal install readline
> ...
> checking for GNUreadline.framework... checking for readline... no
> checking for tputs in -lncurses... yes
> checking for readline in -lreadline... yes
> checking for rl_readline_version... yes
> checking for rl_begin_undo_group... no
> configure: error: readline not found, so this package cannot be built
> See `config.log' for more details.
> cabal: Error: some packages failed to install:
> readline-1.0.1.0 failed during the configure step. The exception was:
> exit: ExitFailure 1
>
> Googilng shows the usual explanation that Mac'y broken clone interferes; yet I do have MacPorts and readline 6 there. So I try, per fixes recommended,
>
> $ cabal install readline --extra-include-dirs=/opt/local/include --extra-lib-dirs=/opt/local/lib
> ...
> checking for rl_readline_version... yes
> checking for rl_begin_undo_group... no
> ...
> -- same result.
>
> Downloaded the package and do configure manually:
>
> ./configure --with-readline-includes=/opt/local/include --with-readline-libraries=/opt/local/lib
You should use:
cabal install readline
--configure-option=--with-readline-includes=/opt/local/include
--configure-option=--with-readline-libraries=/opt/local/lib
Hope that helps,
-Judah
More information about the Haskell-Cafe
mailing list