如何在Windows上安装System.Console.Readline for Haskell GHCi?
我正在尝试从命令提示符运行haskell文件。我得到以下错误:如何在Windows上安装System.Console.Readline for Haskell GHCi?,windows,haskell,readline,Windows,Haskell,Readline,我正在尝试从命令提示符运行haskell文件。我得到以下错误: Failed to load interface for `System.Console.Readline' Perhaps you meant System.Console.Haskeline (from haskeline-0.7.2.3) Locations searched: System\Console\Readline.hs System\Console\Readline.lhs System\Console\Read
Failed to load interface for `System.Console.Readline'
Perhaps you meant System.Console.Haskeline (from haskeline-0.7.2.3)
Locations searched:
System\Console\Readline.hs
System\Console\Readline.lhs
System\Console\Readline.hsig
System\Console\Readline.lhsig
当你安装haskell的完整版本时,我以为readline是cabal的一部分?(我已经这么做了)有人知道我如何解决这个问题吗
编辑:我尝试了>阴谋集团更新,然后是>阴谋集团安装readline,现在我得到了这个:
Resolving dependencies...
Configuring readline-1.0.3.0...
Failed to install readline-1.0.3.0
Build log ( C:\Users\Dan\AppData\Roaming\cabal\logs\readline-1.0.3.0.log ):
Configuring readline-1.0.3.0...
bash.exe: warning: could not find /tmp, please create!
checking for gcc... C:\PROGRA~1\HASKEL~1\802E01~1.1\mingw\bin\gcc.exe
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 C:\PROGRA~1\HASKEL~1\802E01~1.1\mingw\bin\gcc.exe accepts -g... yes
checking for C:\PROGRA~1\HASKEL~1\802E01~1.1\mingw\bin\gcc.exe option to accept ISO C89... none needed
checking for GNUreadline.framework... checking for readline... no
checking for tputs in -lncurses... no
checking for tputs in -ltermcap... no
checking for tputs in -lcurses... no
checking for rl_readline_version... no
configure: error: readline not found, so this package cannot be built
See `config.log' for more details.
cabal: Leaving directory 'C:\Users\Dan\AppData\Local\Temp\cabal-tmp-884\readline-1.0.3.0'
cabal: Error: some packages failed to install:
readline-1.0.3.0 failed during the configure step. The exception was:
ExitFailure 1
你找到解决办法了吗?我也有同样的问题。