我也在使用带有cygwin的Windows7。
我从二月份开始就在Haskell平台上安装了happstack hsp。
我刚从四月开始安装了Haskell平台。我尝试通过cabal安装happstack hsp包,得到以下错误:
$cabal install happstack-hsp
Resolving dependencies...
Configuring hsp-0.7.1...
Building hsp-0.7.1...
Preprocessing library hsp-0.7.1...
ghc.exe: could not execute: trhsx
cabal.exe: Error: some packages failed to install:
happstack-hsp-7.1.1 depends on hsp-0.7.1 which failed to install.
hsp-0.7.1 failed during the building phase. The exception was:
ExitFailure 1然后我尝试安装trhsx,得到了这个错误:
$cabal install trhsx
Resolving dependencies...
Configuring trhsx-0.2.2...
Building trhsx-0.2.2...
Preprocessing library trhsx-0.2.2...
Trhsx.hs:1:1:
Could not find module `Prelude'
It is a member of the hidden package `base'.
Perhaps you need to add `base' to the build-depends in your .cabal file.
It is a member of the hidden package `haskell2010-1.1.0.1'.
Perhaps you need to add `haskell2010' to the build-depends in your .cabal file.
It is a member of the hidden package `haskell98-2.0.0.1'.
Perhaps you need to add `haskell98' to the build-depends in your .cabal file.
Use -v to see a list of the files searched for.
cabal.exe: Error: some packages failed to install:
trhsx-0.2.2 failed during the building phase. The exception was:
ExitFailure 1我也在cmd中尝试过,也得到了同样的结果。自从我使用haskell已经很多年了,它发生了很大的变化,你有什么想法吗?
发布于 2012-11-25 02:10:15
trhsx现在来自hsx包。错误的原因是cabal默认在$HOME/.cabal/bin中安装可执行文件。但是,默认情况下,$HOME/.cabal/bin不在您的$PATH中。
如果你把它添加到你的$PATH中,那么一切都会好起来的。
https://stackoverflow.com/questions/13540096
复制相似问题