2010-08-26 74 views
3

这里是尝试通过安装时,我得到的消息小集团安装:如何在Cygwin下安装Haskell readline?

$ cabal install --extra-include-dirs="C:\no_spaces\cygwin\usr\include" --extra-lib-dirs="C:\no_spaces\cygwin\lib" readline 
Resolving dependencies... 
Configuring readline-1.0.1.0... 
checking for gcc... gcc 
checking for C compiler default output file name... a.exe 
checking whether the C compiler works... yes 
checking whether we are cross compiling... no 
checking for suffix of executables... .exe 
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... yes 
checking for rl_erase_empty_line... yes 
checking for rl_free_undo_list... yes 
checking for rl_completion_word_break_hook in -lreadline... yes 
configure: creating ./config.status 
config.status: creating config.mk 
config.status: creating readline.buildinfo 
config.status: creating include/HsReadlineConfig.h 
config.status: include/HsReadlineConfig.h is unchanged 
cabal.exe: Missing dependencies on foreign libraries: 
* Missing header file: HsReadline.h 
* Missing C libraries: readline, ncurses 
This problem can usually be solved by installing the system packages that 
provide these libraries (you may need the "-dev" versions). If the libraries 
are already installed but in a non-standard location then you can use the 
flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are. 
cabal.exe: Error: some packages failed to install: 
readline-1.0.1.0 failed during the configure step. The exception was: 
ExitFailure 1 

我有readline.h和诸如此类的东西,并明确似乎找到他们。缺少HsReadline.h成为一个问题似乎很奇怪:是不是我试图安装的软件包的一部分?

任何有关如何让这项工作的意见,将不胜感激。我花了几天的时间试图让这个工作,不管是在gnuWin32 readline,MinGW还是cygwin下。

+0

您是否尝试过使用 --extra-include-dirs =和--extra-lib-dirs = flags指向您的库所在的文件夹? 你安装了readline-dev和ncurses-dev吗? 告诉我们你以前试过的是什么。 – jakebman 2010-08-26 20:12:45

回答

1

我要大胆猜测,什么扔Cygwin的关闭是DOS/Windows风格的路径:“C:\ no_spaces \ Cygwin的的\ usr \包括”

尝试导航到这些文件在cygwin贝壳。它可能看起来像“/ cygdrive/c/no_spaces/cygwin/usr/include”

有关HsReadline.h的消息可能是一条红色鲱鱼。真正的问题是Cabal无法找到要编译的底层开发库。