如何在Windows 7中安装old-time-1.1.0.3

时间:2018-12-16 08:45:18

标签: haskell

我尝试使用cabal intall old-time在Windows 7(GHC版本:8.4.2)中安装old-time-1.1.0.3,但未成功,这是错误消息:

Configuring old-time-1.1.0.3...
..\old-time-1.1.0.3\configure: line 1038: $'with_compiler\r=ghc': command not found
configure: WARNING: unrecognized options: --with-compiler
checking for gcc... ../mingw/bin\gcc.exe
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether ../mingw/bin\gcc.exe accepts -g... yes
checking for ../mingw/bin\gcc.exe option to accept ISO C89... none needed
checking how to run the C preprocessor... ../mingw/bin\gcc.exe -E
checking for grep that handles long lines and -e... /cygdrive/c/app/gnu/win32/bin/grep
checking for egrep... /cygdrive/c/app/gnu/win32/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... ..\old-time-1.1.0.3\configure: line 1606: ${ac_cv_header_sys_types_h
+:}: bad substitution
..\old-time-1.1.0.3\configure: line 23: $'IFS\r=': command not found
..\old-time-1.1.0.3\configure: line 23: unset: `IFS
': not a valid identifier
..\old-time-1.1.0.3\configure: line 23: $'PATH\r=': command not found
..\old-time-1.1.0.3\configure: line 23: unset: `PATH
': not a valid identifier
..\old-time-1.1.0.3\configure: line 23: $'ac_includes_default\r=': command not found
..\old-time-1.1.0.3\configure: line 23: unset: `ac_includes_default
': not a valid identifier
..\old-time-1.1.0.3\configure: line 23: $'ac_ls_di\r=': command not found
..\old-time-1.1.0.3\configure: line 23: unset: `ac_ls_di
': not a valid identifier
..\old-time-1.1.0.3\configure: line 23: $'ac_precious_vars\r=': command not found
..\old-time-1.1.0.3\configure: line 23: unset: `ac_precious_vars
': not a valid identifier
..\old-time-1.1.0.3\configure: line 23: $'ac_pwd_ls_di\r=': command not found
..\old-time-1.1.0.3\configure: line 23: unset: `ac_pwd_ls_di
': not a valid identifier
..\old-time-1.1.0.3\configure: line 23: $'ac_subst_vars\r=': command not found
..\old-time-1.1.0.3\configure: line 23: unset: `ac_subst_vars
': not a valid identifier
..\old-time-1.1.0.3\configure: line 23: $'ac_user_opts\r=': command not found
..\old-time-1.1.0.3\configure: line 23: unset: `ac_user_opts
': not a valid identifier
..\old-time-1.1.0.3\configure: line 23: $'as_bourne_compatible\r=': command not found
..\old-time-1.1.0.3\configure: line 23: unset: `as_bourne_compatible
': not a valid identifier
..\old-time-1.1.0.3\configure: line 23: $'as_nl\r=': command not found
..\old-time-1.1.0.3\configure: line 23: unset: `as_nl
': not a valid identifier
..\old-time-1.1.0.3\configure: line 23: $'as_required\r=': command not found
..\old-time-1.1.0.3\configure: line 23: unset: `as_required
': not a valid identifier
..\old-time-1.1.0.3\configure: line 23: $'as_save_IFS\r=': command not found
..\old-time-1.1.0.3\configure: line 23: unset: `as_save_IFS
': not a valid identifier
..\old-time-1.1.0.3\configure: line 23: $'as_suggested\r=': command not found
..\old-time-1.1.0.3\configure: line 23: unset: `as_suggested
': not a valid identifier
cabal: Leaving directory '..\old-time-1.1.0.3'

我找到了类似的帖子:When I try to install hlint I get errors surrounding old-time-1.1.0.3,但是以上帖子的解决方案对我不起作用。

编辑: 这是我的阴谋配置文件,已删除的备注行:

repository hackage.haskell.org
  url: http://hackage.haskell.org/

remote-repo-cache: C:\Users\user\AppData\Roaming\cabal\packages

world-file: C:\Users\user\AppData\Roaming\cabal\world

extra-include-dirs: C:\programs\haskell\8.4.2\mingw\include

extra-lib-dirs: C:\programs\haskell\8.4.2\mingw\lib

extra-prog-path: C:\programs\haskell\8.4.2\msys\usr\bin,
                 C:\Users\user\AppData\Roaming\cabal\bin

symlink-bindir: C:\Users\user\AppData\Roaming\cabal\bin

build-summary: C:\Users\user\AppData\Roaming\cabal\logs\build.log

remote-build-reporting: anonymous

jobs: $ncpus

EDIT2:

我尝试手动构建它,但是缺少一些依赖项。这是错误消息:

>runhaskell Setup.hs configure --ghc

Configuring old-time-1.1.0.3...
Setup.hs: Encountered missing dependencies:
base >=4.7 && <4.9, old-locale ==1.0.*

0 个答案:

没有答案