2015-04-04 34 views
2

我嘗試以下命令奉命:錯誤與安裝磊小集團安裝

cabal install netcore 

的錯誤如下:

[email protected]:~/netcore$ cabal install netcore --force-reinstalls --reinstall 
Resolving dependencies... 
cabal: Could not resolve dependencies: 
trying: netcore-1.0.0 (user goal) 
next goal: network (dependency of netcore-1.0.0) 
rejecting: network-2.6.0.2/installed-9fc..., 2.6.0.2, 2.6.0.1, 2.6.0.0, 
2.5.0.0, 2.4.2.3, 2.4.2.2, 2.4.2.1, 2.4.2.0, 2.4.1.2, 2.4.1.1, 2.4.1.0, 
2.4.0.1, 2.4.0.0 (conflict: netcore => network==2.3.*) 
trying: network-2.3.2.0 
next goal: unix (dependency of network-2.3.2.0) 
rejecting: unix-2.7.0.1/installed-f86... (conflict: unix => 
bytestring==0.10.4.0/installed-d6f..., netcore => bytestring==0.9.*) 
trying: unix-2.7.1.0 
next goal: parsec (dependency of netcore-1.0.0) 
rejecting: parsec-3.1.9/installed-3e8... (package is broken) 
trying: parsec-3.1.9 
next goal: text (dependency of parsec-3.1.9) 
rejecting: text-1.2.0.4/installed-3df... (conflict: text => 
bytestring==0.10.6.0/installed-768..., netcore => bytestring==0.9.*) 
trying: text-1.2.0.4 
next goal: bytestring (dependency of netcore-1.0.0) 
rejecting: bytestring-0.10.6.0/installed-768..., 0.10.4.0/installed-d6f..., 
0.10.6.0, 0.10.4.1, 0.10.4.0, 0.10.2.0, 0.10.0.2, 0.10.0.1, 0.10.0.0 
(conflict: netcore => bytestring==0.9.*) 
rejecting: bytestring-0.9.2.1, 0.9.2.0 (conflict: text => 
bytestring>=0.10.4.0) 
rejecting: bytestring-0.9.1.10, 0.9.1.9, 0.9.1.8, 0.9.1.7, 0.9.1.6, 0.9.1.5, 
0.9.1.4, 0.9.1.3, 0.9.1.2, 0.9.1.1, 0.9.1.0, 0.9.0.4, 0.9.0.3, 0.9.0.2, 
0.9.0.1, 0.9 (conflict: unix => bytestring>=0.9.2 && <0.11) 
Dependency tree exhaustively searched. 
[email protected]:~/netcore$ 

我無法破譯我的下一個行動的過程應該來自這些訊息。任何幫助將不勝感激。

P.S .:我最終的目標是讓FlowLog啓動並運行。我在這裏使用的是Ubuntu 14.04系統。

+1

你的第一步應該是建立一個沙箱。問題是選定的netcore版本需要'bytestring == 0.9。*',選擇的文本版本需要'bytestring> = 0.10.4.0' - 顯然不兼容。我認爲netcore引入的約束太緊張,但你可以嘗試使用'--constraint ='bytestring == 0.9。*''進行安裝。 – user2407038 2015-04-05 00:45:28

+1

我嘗試過,並且在'-dry-run'上也失敗了一點。我有一個愚蠢的想法,試圖在2012年netcore上傳的版本中修復軟件包。我碰到了一個難以解決的問題:'netcore'所需的'binary'版本不適用於現代GHC。由於依賴關係過於嚴格,約束條件太嚴格,依賴關係也沒有任何限制,所以我懷疑這個包已經完全沒有問題了。 – 2015-04-05 00:53:30

+0

@ user2407038:謝謝!我一定會明天嘗試第一件事。 – 2015-04-05 04:42:24

回答

0

與其試圖安裝圍繞舊包的舊包,我試圖構建,我發現它更合理地去碰撞它的所有版本(或自動與--allow-newer這樣做),然後去做清潔工作以修復其中引入的(次要)破損。通常情況下,只有幾件事需要修復,儘管它們可能需要修復一些地方。最終的結果是可以發回給作者並讓他們忍受黑客攻擊的軟件包更新版本!