安装 haskell cabal 无需手动依赖解析
我看到有一个名为 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该安装 Haskell 平台(“包含电池”)
You should install the Haskell Platform ("batteries included")