微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

使用 cabal 安装时 pkg-config 错误

如何解决使用 cabal 安装时 pkg-config 错误

我刚刚使用 cabal:cabal install alex happy 安装了 Alex 和 Happy。但后来我从 Windows 中得到了以下弹出窗口:

pkg-config.exe - System Error

The code execution cannot proceed because libglib-2.0-0.dll was not found. Reinstalling the program may fix this problem.

看起来程序安装成功,但感觉不是一个好的干净安装。

Warning: cannot determine version of C:\Program Files\Mono\bin\pkg-config.exe
:
""
Warning: cannot determine version of C:\Program Files\Mono\bin\pkg-config.exe
:
""
Resolving dependencies...
Build profile: -w ghc-9.0.1 -O1
In order,the following will be built (use -v for more details):
 - alex-3.2.6 (exe:alex) (requires download & build)
 - happy-1.20.0 (exe:happy) (requires download & build)
Downloading  happy-1.20.0
Downloaded   happy-1.20.0
Downloading  alex-3.2.6
Downloaded   alex-3.2.6
Starting     happy-1.20.0 (exe:happy)
Starting     alex-3.2.6 (exe:alex)
Building     alex-3.2.6 (exe:alex)
Building     happy-1.20.0 (exe:happy)
Installing   alex-3.2.6 (exe:alex)
Completed    alex-3.2.6 (exe:alex)
Installing   happy-1.20.0 (exe:happy)
Completed    happy-1.20.0 (exe:happy)
copying 'alex.exe' to 'C:\Users\micha\AppData\Roaming\cabal\bin\alex.exe'
copying 'happy.exe' to 'C:\Users\micha\AppData\Roaming\cabal\bin\happy.exe'

为什么 cabal 试图访问我的单声道编译器?这是正常行为吗?我并不真正了解 Cabal,也从未使用过它。我只在基本的 Haskell 程序中使用过 GHC,因为我是 Haskell 的初学者。对这个错误有什么建议吗?

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。