尽管安装了依赖项,但尝试配置 Setup.hs 时出现依赖项问题

发布于 2024-10-07 13:19:06 字数 354 浏览 0 评论 0原文

我已获得一个Setup.hs 文件以及另一个包含源代码的.hs 文件。每当我尝试通过以下方式配置安装时:

runhaskell Setup.hs 配置

我收到错误:

安装:至少缺少以下依赖项: 二进制>=0.4.0 && <0.6.0,haskeline ==0.6.*

我已经使用 cabal 安装了这些依赖项,但是当我尝试再次运行安装程序配置命令时,出现相同的错误。我对 Haskell 完全陌生 - 在尝试再次运行安装程序之前进行 cabal 安装后,我是否还缺少另一个步骤?

I've been provided with a Setup.hs file, along with another .hs file that contains the source code. Whenever I try to configure the install by the following:

runhaskell Setup.hs configure

I get the error:

Setup: At least the following dependencies are missing:
binary >=0.4.0 && <0.6.0, haskeline ==0.6.*

I've since installed these dependencies using cabal, but when I try to run the Setup configure command again, I get the same error. I'm completely new to Haskell - is there another step I'm missing after doing a cabal install before trying to run Setup again?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风向决定发型 2024-10-14 13:19:06

你是如何安装这些软件包的?如果您使用 --user 标志安装它们,那么您还需要使用 --user 标志进行配置。

您可以通过运行 ghc-pkg list binaryghc-pkg list haskeline 来验证软件包是否已安装。它将列出与该名称匹配的已安装软件包版本以及它们的安装位置。

How did you install the packages? If you installed them with the --userflag, then you also need to configure with the --user flag.

You can verify that the packages are installed by running ghc-pkg list binary and ghc-pkg list haskeline. It will list the installed package versions matching that name along with where they are installed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文