Me refiero al haskell readline library wrapper al c readline library.¿Cómo instalas la librería haskell readline en Mac OSX?
cabal install readline
de salida a continuación:
$ cabal install readline
Resolving dependencies...
Configuring readline-1.0.1.0...
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
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:
ExitFailure 1
que tiene la biblioteca readline c instalado a través de macports (utilizando sudo port install readline
), pero sigo teniendo el mismo error al intentar instalar la biblioteca readline Haskell.
http://www.haskell.org/cabal/FAQ.html – tekknolagi
Si instaló 'readline' con' port', ¿por qué necesita intentar instalarlo con 'cabal'? – tekknolagi
La biblioteca 'readline' c está instalada con el puerto, pero no puedo instalar la biblioteca' readline' haskell. He aclarado la pregunta para dejarlo en claro. –