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.
我怎樣才能得到get
或install
實際使用代理?還是有其他一些問題阻止軟件包從hackage安裝?
這似乎有些奇怪:*跳過下載:本地和遠程文件匹配* - 我懷疑,即使這一步成功。這可能是你的env.setting :( – Carsten
順便說一句:AFAIK cabal應該使用你的系統設置(適用於我的Windows) – Carsten