简体   繁体   English

cabal-install和ghc 7.10.1

[英]cabal-install and ghc 7.10.1

I just upgraded to ghc 7.10.1 and whenever I try use cabal-install I run into the following error: 我刚刚升级到ghc 7.10.1,每当尝试使用cabal-install时,都会遇到以下错误:

ghc: ghc no longer supports single-file style package databases (dist/package.conf.inplace) use 'ghc-pkg init' to create the database with the correct format. ghc:ghc不再支持单文件样式的软件包数据库(dist / package.conf.inplace),请使用ghc-pkg init来创建具有正确格式的数据库。

How do I fix this? 我该如何解决?

If you are on Mac OS X and are using homebrew it may be that you installed Cabal through haskell-platform package, which is outdated with no direct upgrade path. 如果您使用的是Mac OS X,并且正在使用自制软件,则可能是您通过haskell-platform软件包安装了Cabal,该软件包已经过时,没有直接升级路径。

You should uninstall haskell-platform and reinstall Cabal using the cabal-install package. 您应该卸载haskell-platform然后使用cabal-install软件包重新安装Cabal。

It could well be you have a newer cabal on your path but can't find it because the old one shadows it. 很有可能是您的路线上有新的阴谋集团,但找不到,因为旧的阴谋集团掩盖了它。 So looking for where cabal may help you resolve that. 因此,寻找where cabal可能会帮助您解决这一问题。 Barring that, you can download a newer cabal binary from the cabal homepage . 除此之外,您可以从cabal主页下载更新的cabal二进制文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM