我正在为我的笔记本电脑和个人电脑首次安装haskell platform for windows10 (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 该日志只是重复上面显示的stdout
有什么想法吗?
发布于 2018-02-06 16:28:50
通常,这是因为未按照平台说明的建议将以下行添加到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(具有为适当版本的平台设置的路径。)
https://stackoverflow.com/questions/40260323
复制相似问题