haskell cabal的安装错误

时间:2016-10-26 10:50:51

标签: windows haskell cabal cabal-install

我第一次为我的笔记本电脑和电脑安装了针对Windows 10的haskell平台(https://www.haskell.org/platform/windows.html)。

我的电脑安装正常,我可以毫无问题地运行cabal install hsdev。但是,当我在笔记本电脑上执行完全相同的过程时,会出现以下错误:

Resolving dependencies...
Configuring old-time-1.1.0.3...
Failed to install old-time-1.1.0.3
Build log ( C:\Users\user\AppData\Roaming\cabal\logs\old-time-1.1.0.3.log ):
Configuring old-time-1.1.0.3...
configure: error: invalid package name: 0
\old-time-1.1.0.3'
cabal: Leaving directory 'C:\Users\user\AppData\Local\Temp\cabal-tmp-7388\old-time-1.1.0.3'
cabal: Error: some packages failed to install:
old-time-1.1.0.3 failed during the configure step. The exception was:
ExitFailure 

日志只重复上面显示的标准输出

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

通常这是因为平台说明建议不将以下行添加到您的cabal配置中(可通过运行cabal user-config init发现):

extra-prog-path: C:\Program Files\Haskell Platform\8.2.2\msys\usr\bin
extra-lib-dirs: C:\Program Files\Haskell Platform\8.2.2\mingw\lib
extra-include-dirs: C:\Program Files\Haskell Platform\8.2.2\mingw\include

(为适当版本的平台设置路径。)