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