我指的是haskell readline library wrapper到c readline library。下面如何在Mac OSX上安装haskell readline库?
cabal install readline
输出:
$ 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
我必须通过MacPorts的(使用sudo port install readline
)安装在C readline库,但我仍然得到同样的错误尝试安装Haskell的readline库。
http://www.haskell.org/cabal/FAQ.html – tekknolagi
如果您安装'readline'与'端口',那么为什么你需要尝试安装'cabal'? – tekknolagi
'readline' c库与端口一起安装,但我无法安装'readline' haskell库。我澄清了这个问题要明确。 –