【发布时间】:2011-11-28 03:17:23
【问题描述】:
我指的是haskell readline library wrapper 到c readline library。
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 安装了 c readline 库(使用 sudo port install readline),但在尝试安装 haskell readline 库时仍然遇到同样的错误。
【问题讨论】:
-
如果您使用
port安装了readline,那么您为什么需要尝试使用cabal安装它? -
readlinec 库是通过端口安装的,但是我无法安装readlinehaskell 库。我已经澄清了这个问题。 -
是否有带端口的独立库和-dev 库包?如果是这样,您还需要安装 -dev 版本。
-
@DanielWagner 似乎没有。