本文介绍了在macOS Sierra上安装Snap的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在macOS Sierra上安装Haskell框架Snap时遇到问题。每当我安装它,我收到以下消息:

 解决依赖关系... 
配置securemem-0.1.9 ...
配置skein-1.0.9.4 ...
配置configurator-0.3.0.0 ...
配置cryptonite-0.24 ...
Building configurator-0.3.0.0 ...
构建securemem-0.1.9 ...
构建skein-1.0.9.4 ...
未能安装配置器-.3.0.0.0
构建日志(/ Users /nicholas/.cabal/logs/ghc-8.2.1/configurator-0.3.0.0-6dySPcNCURWFswtMXJvzho.log):
cabal:进入目录'/tmp/cabal-tmp-66175/configurator-0.3.0.0'
配置器-0.3.0.0 ...
配置器的预处理库-.3.0.0 ..
配置器-0.3.0.0的构建库..
<命令行> ;:无法满足-package-id attoparsec-0.13.2.0-5dp4kBDsiGY4dQpLKbD5rk:
attoparsec-0.13.2.0-5dp4kBDsiGY4dQpLKbD5rk由于受到依赖关系影响而不可用:
scientific-0.3.5.1-L0qYzdp0wpz8rO8gircNSR text-1.2.2.2-EGUst8sqNAZCw 1xLPcmcMH
(使用-v获取更多信息)
cabal:离开目录'/tmp/cabal-tmp-66175/configurator-0.3.0.0'
配置变压器 - 基础-0.4.4。 ..
建筑cryptonite-0.24 ...
建筑变压器基地-0.4.4 ...
安装securemem-0.1.9
安装变压器 - 基地-0.4.4
安装skein-1.0.9.4
安装了cryptonite-0.24
更新文档索引
/Users/nicholas/Library/Haskell/share/doc/x86_64-osx-ghc-8.2。 1 / index.html
cabal:错误:某些软件包未能安装:
configurator-0.3.0.0-6dySPcNCURWFswtMXJvzho在构建阶段失败。
例外情况是:
ExitFailure 1
snap-1.0.0.2-5CZKyA9EY4oLgkpHYCVfnv依赖于snap-1.0.0.2,未能安装

我使用的是使用homebrew安装的Haskell平台( brew cask install haskell -platform )和cabal版本2.0.0.2。我已经尝试使用sudo并删除我的〜/ .ghc 文件

解决方案

完整的8.2.1二进制平台版本存在一个问题,这个版本刚刚得到解决:



这可能是

(另见:)


I'm having trouble installing the Haskell framework Snap on macOS Sierra. Whenever I install it, I get the following message:

Resolving dependencies...
Configuring securemem-0.1.9...
Configuring skein-1.0.9.4...
Configuring configurator-0.3.0.0...
Configuring cryptonite-0.24...
Building configurator-0.3.0.0...
Building securemem-0.1.9...
Building skein-1.0.9.4...
Failed to install configurator-0.3.0.0
Build log ( /Users/nicholas/.cabal/logs/ghc-8.2.1/configurator-0.3.0.0-6dySPcNCURWFswtMXJvzho.log ):
cabal: Entering directory '/tmp/cabal-tmp-66175/configurator-0.3.0.0'
Configuring configurator-0.3.0.0...
Preprocessing library for configurator-0.3.0.0..
Building library for configurator-0.3.0.0..
<command line>: cannot satisfy -package-id attoparsec-0.13.2.0-5dp4kBDsiGY4dQpLKbD5rk:
    attoparsec-0.13.2.0-5dp4kBDsiGY4dQpLKbD5rk is unusable due to shadowed dependencies:
      scientific-0.3.5.1-L0qYzdp0wpz8rO8gircNSR text-1.2.2.2-EGUst8sqNAZCw1xLPcmcMH
    (use -v for more information)
cabal: Leaving directory '/tmp/cabal-tmp-66175/configurator-0.3.0.0'
Configuring transformers-base-0.4.4...
Building cryptonite-0.24...
Building transformers-base-0.4.4...
Installed securemem-0.1.9
Installed transformers-base-0.4.4
Installed skein-1.0.9.4
Installed cryptonite-0.24
Updating documentation index
/Users/nicholas/Library/Haskell/share/doc/x86_64-osx-ghc-8.2.1/index.html
cabal: Error: some packages failed to install:
configurator-0.3.0.0-6dySPcNCURWFswtMXJvzho failed during the building phase.
The exception was:
ExitFailure 1
snap-1.0.0.2-5CZKyA9EY4oLgkpHYCVfnv depends on snap-1.0.0.2 which failed to
install.

I'm using the Haskell Platform installed using homebrew (brew cask install haskell-platform), and cabal version 2.0.0.2. I have tried using sudo and deleting my ~/.ghc file

解决方案

There was an issue with full 8.2.1 binary platform builds that's just been resolved: https://mail.haskell.org/pipermail/haskell-cafe/2017-October/127979.html

This was likely an instance of that.

(see also: GHC cannot find libraries on fresh install of Haskell-Platform)

这篇关于在macOS Sierra上安装Snap的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 00:32
查看更多