我正在尝试在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版本(我不断收到有关较新版本的通知),但是install命令一直在说新版本版安装好了。我不确定这是否与此有关......
答案 0 :(得分:1)
我没有找到为什么最新版本的websockets不能构建的实际答案,但解决了我的问题的原因是安装旧版本的websockets。
cabal install websockets-0.8.6.2