尽管安装了依赖项,但尝试配置 Setup.hs 时出现依赖项问题
我已获得一个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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你是如何安装这些软件包的?如果您使用
--user
标志安装它们,那么您还需要使用--user
标志进行配置。您可以通过运行
ghc-pkg list binary
和ghc-pkg list haskeline
来验证软件包是否已安装。它将列出与该名称匹配的已安装软件包版本以及它们的安装位置。How did you install the packages? If you installed them with the
--user
flag, then you also need to configure with the--user
flag.You can verify that the packages are installed by running
ghc-pkg list binary
andghc-pkg list haskeline
. It will list the installed package versions matching that name along with where they are installed.