2016-06-30 66 views
1

我有Win 10 @ x64計算機。我安裝了Haskell平臺(HP) 8.0.1,但後來意識到我需要在使用GHC 8構建時遇到麻煩。所以我卸載了HP 8,而是安裝了HP 7.10.3。 cabal目錄中的config文件仍然是從8安裝的,所以我手動刪除它(因爲7.10.3的cabal無法解析它)。在cabal-install期間ld.exe找不到庫(Haskell Platform)

現在我有問題cabal安裝任何隱含建設可執行文件的軟件包。請參閱下面的建築物cheapskate的示例。在構建yaml時,我有非常類似的消息,所以我想沒有什麼具體的包裝本身。就像我說任何安裝可執行程序包的問題一樣。

Linking dist\build\cheapskate\cheapskate.exe ... 
C:/Program Files/Haskell Platform/7.10.3/mingw/bin/ld.exe: cannot find -lHSxss-sanitize-0.3.5.7-HScF09TDCPn9q2HNPyr3jY 
C:/Program Files/Haskell Platform/7.10.3/mingw/bin/ld.exe: cannot find -lHSutf8-string-1.0.1.1-L8eKHa7Iv9q7FVKUYW6u4b 
C:/Program Files/Haskell Platform/7.10.3/mingw/bin/ld.exe: cannot find -lHStagsoup-0.14-LkUWVoqDDljLCcz7bB5oLY 
C:/Program Files/Haskell Platform/7.10.3/mingw/bin/ld.exe: cannot find -lHScss-text-0.1.2.1-EIrTNZIusX93HMVzZkp9UD 
C:/Program Files/Haskell Platform/7.10.3/mingw/bin/ld.exe: cannot find -lHSuniplate-1.6.12-DgRHum07M0vBMdvTsdo5gV 
C:/Program Files/Haskell Platform/7.10.3/mingw/bin/ld.exe: cannot find -lHSdata-default-0.7.1.1-3MPp9dYgnh90NQDAZx5NXx 
C:/Program Files/Haskell Platform/7.10.3/mingw/bin/ld.exe: cannot find -lHSdata-default-instances-old-locale-0.0.1-K6L8Um6XgJK7vZZFbrTNny 
C:/Program Files/Haskell Platform/7.10.3/mingw/bin/ld.exe: cannot find -lHSdata-default-instances-dlist-0.0.1-H5f5Qu8KYxpJlVdwCzbtAY 
C:/Program Files/Haskell Platform/7.10.3/mingw/bin/ld.exe: cannot find -lHSdlist-0.7.1.2-AO7XAasbAeyL0XLKeq1Aui 
C:/Program Files/Haskell Platform/7.10.3/mingw/bin/ld.exe: cannot find -lHSdata-default-instances-containers-0.0.1-Lel7wFldMDA1Zs74nVWKYF 
C:/Program Files/Haskell Platform/7.10.3/mingw/bin/ld.exe: cannot find -lHSdata-default-class-0.1.2.0-4JL8mCHvyuoKtdHwhiuMnt 
C:/Program Files/Haskell Platform/7.10.3/mingw/bin/ld.exe: cannot find -lHSblaze-html-0.8.1.1-89cVIlB12sFJRMi1lQAdfn 
C:/Program Files/Haskell Platform/7.10.3/mingw/bin/ld.exe: cannot find -lHSblaze-markup-0.7.0.3-7gHcQviMQE9GGsKcO1ZT0j 
C:/Program Files/Haskell Platform/7.10.3/mingw/bin/ld.exe: cannot find -lHSblaze-builder-0.4.0.2-4HkRnVv5mkB1jlZDT6uaGq 
collect2.exe: error: ld returned 1 exit status 
cabal: Error: some packages failed to install: 
cheapskate-0.1.0.5 failed during the building phase. The exception was: 
ExitFailure 1 

回答

0

該說明似乎對應於損壞的包數據庫。

ghc-pkg check可以幫助看看是否屬於這種情況,ghc-pkg recache可能有助於解決問題。如果失敗,可以刪除本地包數據庫目錄,這是ghc-pkg list中列出的兩個之一。

相關問題