-package Cabal-1.8.0.6 破坏 Mac 上的 pango 安装
在 mac 上安装 Haskell pango 时(sudo cabal install pango
),第一个问题是它尝试安装我已经安装的软件包。我已经安装了haskell98(成功),但是pango尝试再次安装它,当编译完成时,它给出了这个错误:
Registering haskell98-1.0.1.1...
Installing library in /Users/username/.cabal/lib/haskell98-1.0.1.1/ghc-6.12.3
Registering haskell98-1.0.1.1...
<command line>: cannot satisfy -package Cabal-1.8.0.6:
Cabal-1.8.0.6-ec9be469687b5a514f4b7e8e2b8343c7 is unusable due to missing or recursive dependencies:
process-1.0.1.3-1209536e5ce8f43dc64e390034356d63
(use -v for more information)
<command line>: cannot satisfy -package Cabal-1.8.0.6:
Cabal-1.8.0.6-ec9be469687b5a514f4b7e8e2b8343c7 is unusable due to missing or recursive dependencies:
process-1.0.1.3-1209536e5ce8f43dc64e390034356d63
(use -v for more information)
所以我使用了sudo cabal install pango -v
,这是命令这会破坏 haskell98 的重新安装:
/usr/bin/ghc --make /tmp/glib-0.11.249666/glib-0.11.2/Setup.hs -o /tmp/glib-0.11.249666/glib-0.11.2/dist/setup/setup -odir /tmp/glib-0.11.249666/glib-0.11.2/dist/setup -hidir /tmp/glib-0.11.249666/glib-0.11.2/dist/setup -i -i/tmp/glib-0.11.249666/glib-0.11.2 -package Cabal-1.8.0.6
特别是 -package Cabal-1.8.0.6
部分。这个安装有什么问题吗?
When installing Haskell pango on mac (sudo cabal install pango
), the first problem is that it tries to install packages I've already installed. I've install haskell98 (successfully), but pango tries to install it again, and when the compilation is complete it gives this error:
Registering haskell98-1.0.1.1...
Installing library in /Users/username/.cabal/lib/haskell98-1.0.1.1/ghc-6.12.3
Registering haskell98-1.0.1.1...
<command line>: cannot satisfy -package Cabal-1.8.0.6:
Cabal-1.8.0.6-ec9be469687b5a514f4b7e8e2b8343c7 is unusable due to missing or recursive dependencies:
process-1.0.1.3-1209536e5ce8f43dc64e390034356d63
(use -v for more information)
<command line>: cannot satisfy -package Cabal-1.8.0.6:
Cabal-1.8.0.6-ec9be469687b5a514f4b7e8e2b8343c7 is unusable due to missing or recursive dependencies:
process-1.0.1.3-1209536e5ce8f43dc64e390034356d63
(use -v for more information)
So I used sudo cabal install pango -v
, and this is the command that breaks the reinstallation of haskell98:
/usr/bin/ghc --make /tmp/glib-0.11.249666/glib-0.11.2/Setup.hs -o /tmp/glib-0.11.249666/glib-0.11.2/dist/setup/setup -odir /tmp/glib-0.11.249666/glib-0.11.2/dist/setup -hidir /tmp/glib-0.11.249666/glib-0.11.2/dist/setup -i -i/tmp/glib-0.11.249666/glib-0.11.2 -package Cabal-1.8.0.6
specifically the -package Cabal-1.8.0.6
part. What is wrong with this installation?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这并不是真正的答案,但我无法将其格式化为评论,所以我将其贴在这里。
首先,您是否安装到用户或全局包目录(默认为用户目录,除非您编辑了 .cabal 文件)?如果您将其放入用户目录,请不要将
sudo
与 cabal 一起使用。其次,你运行过
cabal install pango -v
吗? “-v”选项显示 cabal 认为需要安装的内容,以及更多错误消息,因此它会很有帮助。最后,运行 ghc-pkg describe Cabal 来查看安装了哪些版本的 Cabal 及其依赖项。似乎您的 Cabal-1.8.0.6 安装无法使用,但不幸的是我无法说出原因。如果没有任何东西依赖于 Cabal-1.8.0.6,我建议取消注册它。
This isn't really an answer, but I can't format it well as a comment so I'm sticking it here.
First, are you installing into the user or global package directory (the default is the user directory unless you edited your .cabal file)? If you're putting it into the user dir, don't use
sudo
with cabal.Secondly, have you run
cabal install pango -v
? The "-v" option displays what cabal thinks it needs to install, as well as more error messages, so it can be helpful.Finally, run
ghc-pkg describe Cabal
to see which versions of Cabal are installed and their dependencies. It seems like somehow your Cabal-1.8.0.6 installation is unusable, but unfortunately I can't say why. If nothing depends on Cabal-1.8.0.6, I would suggest just unregistering it.