gpt4 book ai didi

haskell - 为什么 cabal 不能动态构建 mighttpd2?

转载 作者:行者123 更新时间:2023-12-02 13:18:32 25 4
gpt4 key购买 nike

GHC 在静态链接我的可执行文件时太慢,所以我想使用“-dynamic”选项进行测试。尽管 cabal install mighttpd2 没问题,但以下两个命令会导致相同的错误。

$cabal install --ghc-options=-dynamic mighttpd2
$cabal install --enable-executable-dynamic mighttpd2

Linking dist/build/mkindex/mkindex ...
Preprocessing executable 'mightyctl' for mighttpd2-2.7.1...
Process.hs:11:8:
Could not find module `Data.Conduit.Process'
Perhaps you haven't installed the "dyn" libraries for package `process conduit-0.5.0.2'?
Use Perhaps you haven't installed the "dyn" libraries for package `process-conduit-0.5.0.2'?
Use -v to see a list of the files searched for.
cabal: Error: some packages failed to install:
mighttpd2-2.7.1 failed during the building phase. The exception was:ExitFailure 1

最佳答案

您需要安装 mighttpd2 依赖的所有库的动态版本。 cabal-install 正确地提示 process-conduit 的动态版本不可用。您必须重新安装 mighttpd2 的整个依赖关系树,并将 --enable-shared --enable-executable-dynamic 传递给 cabal-install .

关于haskell - 为什么 cabal 不能动态构建 mighttpd2?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12232471/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com