2015-09-07 78 views
0

下載包我在Windows上使用哈斯克爾平臺7.10.2-A(64位):陰謀+代理:從hackage

>cabal -V 
cabal-install version 1.22.6.0 
using version 1.22.4.0 of the Cabal library 

我的代理要求(基本HTTP)認證:

>set http_proxy=http://user:[email protected]:port 

這似乎爲cabal update工作:

> cabal update 
Downloading the latest package list from hackage.haskell.org 
Skipping download: Local and remote files match. 

然而,當我嘗試安裝任何軟件包,它失敗:

> cabal get ghc-mod 
Warning: The package list for 'hackage.haskell.org' does not exist. Run 'cabal 
update' to download it. 
cabal: There is no package named 'ghc-mod'. 

>cabal install shelltestrunner 
Warning: The package list for 'hackage.haskell.org' does not exist. Run 'cabal 
update' to download it. 
cabal: There is no package named 'shelltestrunner'. 
You may need to run 'cabal update' to get the latest list of available 
packages. 

我怎樣才能得到getinstall實際使用代理?還是有其他一些問題阻止軟件包從hackage安裝?

+0

這似乎有些奇怪:*跳過下載:本地和遠程文件匹配* - 我懷疑,即使這一步成功。這可能是你的env.setting :( – Carsten

+0

順便說一句:AFAIK cabal應該使用你的系統設置(適用於我的Windows) – Carsten

回答

0

我可能已經發現的原因,使用cabal -v update時,它會顯示路徑等

\\ACME.NET\UserData\username\RF\AppData\Roaming\cabal\packages\hackage.haskell.org\00-index.tar.gz

而無需像C:\Users\username\AppData\..小集團使用的路徑,但的其他用途中顯示的路徑的RF文件夾。必須是我公司的網絡服務器配置。無論如何,我更新了像remote-repo-cache這樣的路徑以使用cabal/config中的另一個文件夾,現在它效果更好。