问题描述
我刚刚使用 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 (将#修改为@)