2014-02-20 24 views
5

的信息素質我懷疑這是無論是與ghccabal-install問題:驚天動地安裝失去了構建輸出

經常拿這樣的形式建立信息:

Resolving dependencies... 
    Configuring ltk-0.8.0.6... 
    Building ltk-0.8.0.6... 
    Preprocessing library ltk-0.8.0.6... 
    [ 1 of 12] Compiling Graphics.UI.Frame.Panes (src/Graphics/UI/Frame/Panes.hs, dist/build/Graphics/UI/Frame/Panes.o) 
    [ 2 of 12] Compiling Graphics.UI.Editor.Parameters (src/Graphics/UI/Editor/Parameters.hs, dist/build/Graphics/UI/Editor/Parameters.o) 
    [ 3 of 12] Compiling Control.Event (src/Control/Event.hs, dist/build/Control/Event.o) 
    [ 4 of 12] Compiling MyMissing  (src/MyMissing.hs, dist/build/MyMissing.o) 
    [ 5 of 12] Compiling Graphics.UI.Editor.Basics (src/Graphics/UI/Editor/Basics.hs, dist/build/Graphics/UI/Editor/Basics.o) 
    [ 6 of 12] Compiling Graphics.UI.Editor.MakeEditor (src/Graphics/UI/Editor/MakeEditor.hs, dist/build/Graphics/UI/Editor/MakeEditor.o) 
    [ 7 of 12] Compiling Text.PrinterParser (src/Text/PrinterParser.hs, dist/build/Text/PrinterParser.o) 

然而,現在我得到這種類型的構建輸出的:

Configuring binary-shared-0.8.3... 
Configuring cairo-0.12.5.1... 
Building binary-shared-0.8.3... 
Building cairo-0.12.5.1... 
Installed binary-shared-0.8.3 
Configuring ghc-paths-0.1.0.9... 
Building ghc-paths-0.1.0.9... 
Installed ghc-paths-0.1.0.9 
Configuring glib-0.12.5.0... 

正如你所看到的,cabal-installghc,無論是導致親瑕疵,現在似乎正在引發不良的幻影。根據我的cabal配置,我運行在默認的詳細級別爲1.是否有一些配置選項可能導致此特定行爲?換句話說,我怎樣才能恢復原來的行爲?版本1.18.0.2

+0

偶然你現在在使用cabal沙箱嗎?您打印的輸出來自安裝*軟件包*,而您的原始輸出來自軟件包中的building * modules *。它看起來像最小的輸出片段是從軟件包的初始安裝到沙盒,在完成之後,您應該看到您期望的輸出。 –

+0

@JohnL,不,我不在沙箱裏。例如,我剛剛安裝了'hoogle',並且沒有模塊編譯輸出,如安裝'hoogle'時預期的那樣。無論我是否在沙箱中,都會發生此行爲。 – eazar001

+0

@JohnL,即如果我要再次安裝'leksah',從所需的'verbose'輸出,它將不會顯示如上所示的'rich'輸出。我不知道是什麼導致了這種副作用。 – eazar001

回答

5

感謝@Michael Snoyman指出配置jobs參數或明確地將其作爲-j標誌傳遞將會將與構建輸出有關的許多信息重定向到文本文件。更多信息可用here.