无法为 lambdacat 安装 happy for gtk2hs-buildtools

发布于 2024-10-23 00:44:43 字数 2204 浏览 4 评论 0原文

所以我想在 win 上构建 https://github.com/baldo/lambdacat

无法在 Windows 上构建 happy(按照说明)。这是一个日志:

C:\Program Files\Haskell Platform\lambdacat>cabal install happy
Resolving dependencies...
[1 of 1] Compiling Main             ( C:\Users\MyUSER\AppData\Local\Temp\h
appy-1.18.6896\happy-1.18.6\Setup.lhs, C:\Users\MyUSER.BAC\AppData\Local\Temp\
happy-1.18.6896\happy-1.18.6\dist\setup\Main.o )

C:\Users\MyUSER.BAC\AppData\Local\Temp\happy-1.18.6896\happy-1.18.6\Setup.lhs:
6:52:
    Warning: In the use of `buildVerbose'
             (imported from Distribution.Simple.Setup):
             Deprecated: "Use buildVerbosity instead"

C:\Users\MyUSER.BAC\AppData\Local\Temp\happy-1.18.6896\happy-1.18.6\Setup.lhs:
7:52:
    Warning: In the use of `defaultUserHooks'
             (imported from Distribution.Simple):
             Deprecated: "Use simpleUserHooks or autoconfUserHooks, unless you n
eed Cabal-1.2
             compatibility in which case you must stick with defaultUserHooks"
Linking C:\Users\MyUSER.BAC\AppData\Local\Temp\happy-1.18.6896\happy-1.18.6\di
st\setup\setup.exe ...
Warning: defaultUserHooks in Setup script is deprecated.
Configuring happy-1.18.6...
setup.exe: The program perl is required but it could not be found.
cabal: Error: some packages failed to install:
happy-1.18.6 failed during the configure step. The exception was:
ExitFailure 1

当我尝试直接 cabal install lambdacat 时,我得到了非常糟糕的日志结尾

cabal: Error: some packages failed to install:
cairo-0.12.0 failed during the configure step. The exception was:
ExitFailure 1
gio-0.12.0 depends on glib-0.12.0 which failed to install.
glade-0.12.0 depends on glib-0.12.0 which failed to install.
glib-0.12.0 failed during the configure step. The exception was:
ExitFailure 1
gtk-0.12.0 depends on glib-0.12.0 which failed to install.
lambdacat-0.1.1 depends on network-2.2.1.10 which failed to install.
network-2.2.1.10 failed during the configure step. The exception was:
ExitFailure 1
pango-0.12.0 depends on glib-0.12.0 which failed to install.
webkit-0.12.1 depends on glib-0.12.0 which failed to install.

So I wanted to build https://github.com/baldo/lambdacat on win.

Can't build happy (it is on instructions) on Windows. Here is a log :

C:\Program Files\Haskell Platform\lambdacat>cabal install happy
Resolving dependencies...
[1 of 1] Compiling Main             ( C:\Users\MyUSER\AppData\Local\Temp\h
appy-1.18.6896\happy-1.18.6\Setup.lhs, C:\Users\MyUSER.BAC\AppData\Local\Temp\
happy-1.18.6896\happy-1.18.6\dist\setup\Main.o )

C:\Users\MyUSER.BAC\AppData\Local\Temp\happy-1.18.6896\happy-1.18.6\Setup.lhs:
6:52:
    Warning: In the use of `buildVerbose'
             (imported from Distribution.Simple.Setup):
             Deprecated: "Use buildVerbosity instead"

C:\Users\MyUSER.BAC\AppData\Local\Temp\happy-1.18.6896\happy-1.18.6\Setup.lhs:
7:52:
    Warning: In the use of `defaultUserHooks'
             (imported from Distribution.Simple):
             Deprecated: "Use simpleUserHooks or autoconfUserHooks, unless you n
eed Cabal-1.2
             compatibility in which case you must stick with defaultUserHooks"
Linking C:\Users\MyUSER.BAC\AppData\Local\Temp\happy-1.18.6896\happy-1.18.6\di
st\setup\setup.exe ...
Warning: defaultUserHooks in Setup script is deprecated.
Configuring happy-1.18.6...
setup.exe: The program perl is required but it could not be found.
cabal: Error: some packages failed to install:
happy-1.18.6 failed during the configure step. The exception was:
ExitFailure 1

When I try to cabal install lambdacat directly I got very bad log end

cabal: Error: some packages failed to install:
cairo-0.12.0 failed during the configure step. The exception was:
ExitFailure 1
gio-0.12.0 depends on glib-0.12.0 which failed to install.
glade-0.12.0 depends on glib-0.12.0 which failed to install.
glib-0.12.0 failed during the configure step. The exception was:
ExitFailure 1
gtk-0.12.0 depends on glib-0.12.0 which failed to install.
lambdacat-0.1.1 depends on network-2.2.1.10 which failed to install.
network-2.2.1.10 failed during the configure step. The exception was:
ExitFailure 1
pango-0.12.0 depends on glib-0.12.0 which failed to install.
webkit-0.12.1 depends on glib-0.12.0 which failed to install.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

围归者 2024-10-30 00:44:43
setup.exe: The program perl is required but it could not be found.

您需要安装 Perl。 ActiveState 有一个适用于 Windows 的发行版。

setup.exe: The program perl is required but it could not be found.

You need to install Perl. ActiveState has a distribution for Windows.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文