【发布时间】:2014-09-23 20:15:50
【问题描述】:
我正在尝试将软件包安装到 Cygwin 中的 Haskell 平台。它需要 websockets 包,其最新版本是 0.9.0.1。
我的命令如下:
cabal install websockets
我在构建过程中收到以下错误消息(下载正常):
Resolving dependencies...
Configuring websockets-0.9.0.1...
Building websockets-0.9.0.1...
Failed to install websockets-0.9.0.1
Last 10 lines of the build log ( C:\Users\username\AppData\Roaming\cabal\logs\websockets-0.9.0.1.log ):
Building websockets-0.9.0.1...
Preprocessing library websockets-0.9.0.1...
[ 1 of 11] Compiling Network.WebSockets.Hybi13.Mask ( src\Network\WebSockets\Hybi13\Mask.hs, dist\build\Network\WebSockets\Hybi13\Mask.o )
[ 2 of 11] Compiling Network.WebSockets.Http ( src\Network\WebSockets\Http.hs, dist\build\Network\WebSockets\Http.o )
[ 3 of 11] Compiling Network.WebSockets.Types ( src\Network\WebSockets\Types.hs, dist\build\Network\WebSockets\Types.o )
[ 4 of 11] Compiling Network.WebSockets.Stream ( src\Network\WebSockets\Stream.hs, dist\build\Network\WebSockets\Stream.o )
src\Network\WebSockets\Stream.hs:24:57:
Module `Network.Socket.ByteString.Lazy' does not export `sendAll'
cabal.exe: Error: some packages failed to install:
websockets-0.9.0.1 failed during the building phase. The exception was:
ExitFailure 1
我在 Windows 7 Pro x64 上默认安装了 Cygwin x64 和 Haskell Platform x64。有解决方法吗?还是我缺少一些配置?
我在http://www.haskell.org/pipermail/beginners/2010-June/004357.html 中提到了同样的cabal 更新问题,我更新的cabal 版本没有被使用(我不断收到有关更新版本的通知),但安装命令一直说新版本安装正常。我不确定这是否与此有关...
【问题讨论】:
标签: cygwin cabal-install