gpt4 book ai didi

javascript - 如何安装 fay?

转载 作者:行者123 更新时间:2023-11-30 10:16:08 25 4
gpt4 key购买 nike

我正在运行 ubuntu 13.10,但在安装 fay 时遇到问题。我使用 sudo apt-get install haskell-platform 安装了 haskell。我尝试 cabal install fay 并收到以下消息:

$ cabal install fay
Resolving dependencies...
Configuring type-eq-0.4.2...
cabal: The program cpphs is required but it could not be found.
Failed to install type-eq-0.4.2
cabal: Error: some packages failed to install:
fay-0.20.0.0 depends on type-eq-0.4.2 which failed to install.
haskell-names-0.3.3.2 depends on type-eq-0.4.2 which failed to install.
type-eq-0.4.2 failed during the configure step. The exception was:
ExitFailure 1

我尝试安装 cpphs,但我已经安装了。

$ cabal install cpphs
Resolving dependencies...
All the requested packages are already installed:
cpphs-1.18.4
Use --reinstall if you want to reinstall anyway.

最后,我尝试自己安装type-eq,预计它依赖于cpphs

$ cabal install type-eq
Resolving dependencies...
Configuring type-eq-0.4.2...
cabal: The program cpphs is required but it could not be found.
Failed to install type-eq-0.4.2
cabal: Error: some packages failed to install:
type-eq-0.4.2 failed during the configure step. The exception was:
ExitFailure 1

我该怎么办?在此先感谢您的帮助。

最佳答案

根据原帖的评论:

  1. cabal 提示找不到已安装的 cpphs

  2. 哪个cpphs说找不到命令

  3. 也就是说cpphs不在shell的搜索路径中

  4. PATH中添加~/.cabal/bin可以解决这个问题

关于javascript - 如何安装 fay?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23621736/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com