安装 haskell cabal 无需手动依赖解析

发布于 2024-08-01 13:01:51 字数 591 浏览 6 评论 0原文

我看到有一个名为 Cabal 的不错的包系统,可以处理依赖关系解析。 所以我尝试安装它,这样我就可以让它为我安装 Haskell OpenGL 模块。 然而,Cabal 本身有很多依赖性。 有没有一种方法可以安装 Cabal 而无需手动解决其所有依赖项? 我尝试运行引导程序,但这似乎不起作用,因为它报告缺少模块 parsec 和网络(它们又具有自己的依赖项)。

在 mtl 模块安装失败之前,手动构建 dep 已经让我深入了大约 3 层:

user@machine:~/haskell/mtl-1.1.0.2$ runghc Setup build
Preprocessing library mtl-1.1.0.2...
Building mtl-1.1.0.2...

Control/Monad/Cont.hs:74:7:
    Could not find module `Control.Monad':
      Perhaps you haven't installed the profiling libraries for package base?
      Use -v to see a list of the files searched for.

I see there's a nice package system called Cabal that handles dependency resolution. So I'm trying to install that so I can get it to install the Haskell OpenGL modules for me. However, Cabal itself has lots of dependencies. Is there a way to install Cabal without manually resolving all of its dependencies? I tried running the bootstrap, but that doesn't seem to do it, because it reports missing modules parsec and network (which in turn have their own dependencies).

Manually building the dep's got me about 3 deep before the mtl module install crapped out on me:

user@machine:~/haskell/mtl-1.1.0.2$ runghc Setup build
Preprocessing library mtl-1.1.0.2...
Building mtl-1.1.0.2...

Control/Monad/Cont.hs:74:7:
    Could not find module `Control.Monad':
      Perhaps you haven't installed the profiling libraries for package base?
      Use -v to see a list of the files searched for.

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

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

发布评论

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

评论(1

生来就爱笑 2024-08-08 13:01:51

您应该安装 Haskell 平台(“包含电池”)

You should install the Haskell Platform ("batteries included")

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