2015-09-07 79 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中的另一个文件夹,现在它效果更好。