2014-09-23 33 views
0

我想在Cygwin中的Haskell平臺上安裝一個包。它需要websockets包,最新版本爲0.9.0.1。在Cygwin中安裝Haskell的websockets包時出錯

我的命令看起來像:

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 

我有一個默認安裝Cygwin x64和哈斯克爾平臺x64在Windows 7 Pro x64上。有沒有解決這個問題的方法?或者我錯過了一些配置?

我在http://www.haskell.org/pipermail/beginners/2010-June/004357.html,在不使用我的更新版本的陰謀中提到的相同cabal更新的問題(我不斷收到通知有關更新的版本),但安裝命令口口聲聲說新版本安裝的罰款。我不知道這是否與此有關...

回答

1

我沒有找到一個實際的答案,爲什麼最新版本的websockets不能構建,但是解決了我的問題是安裝一個老版本的websockets。

cabal install websockets-0.8.6.2