我已经将Cabal软件包管理器用于Haskell程序,以安装从某些存储库克隆的库和新项目。我经常遇到问题。大多数项目使安装它们似乎超级容易,但就我而言,这并不总是正确的-有时它们很难运行。实际上,有些工具太难了,以至于我因为无法安装该项目而对它失去了兴趣。
因此,我不想抱怨,而是想问我应该怎么做才能改善这种情况。我想以我最近的问题为例。
我有兴趣试用Gitit项目。这是一个运行在各种版本控制系统上的有前途的个人Wiki。
所以这是我所做的:
cabal install
在项目目录中运行,就像在项目安装页面上告诉我的那样:
mika@eka:~/git/gitit$ ls
BLUETRIP-LICENSE CHANGES HCAR-gitit.tex LICENSE Network README.markdown RELANN-0.6.1 Setup.lhs TANGOICONS YUI-LICENSE data expireGititCache.hs gitit.cabal gitit.hs plugins
mika@eka:~/git/gitit$ cabal install
Resolving dependencies...
cabal: cannot configure happstack-server-7.0.7. It requires base64-bytestring
==1.0.*
For the dependency on base64-bytestring ==1.0.* there are these packages:
base64-bytestring-1.0.0.0. However none of them are available.
base64-bytestring-1.0.0.0 was excluded because gitit-0.10 requires
base64-bytestring ==0.1.*
mika@eka:~/git/gitit$
所以现在我在想:好吧,我将自己安装happstack-server,也许可以用:
mika@eka:~/git/gitit$ cabal install happstack-server
Resolving dependencies...
Warning: happstack-server.cabal: Ignoring unknown section type: test-suite
Configuring happstack-server-7.0.7...
cabal: At least the following dependencies are missing:
blaze-html ==0.5.*,
hslogger >=1.0.2,
monad-control ==0.3.*,
network >=2.2.3,
sendfile >=0.7.1 && <0.8,
system-filepath >=0.3.1,
text >=0.10 && <0.12,
threads >=0.5,
transformers-base ==0.4.*
cabal: Error: some packages failed to install:
happstack-server-7.0.7 failed during the configure step. The exception was:
ExitFailure 1
因此,似乎缺少一些依赖项。但是,安装这些依赖关系不是一开始就使用cabal的全部意义吗?
我该怎么办?记录错误报告(向哪个项目?),手动安装依赖项或其他?奖励点解释了造成这些类型问题的原因。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句