为什么不能CABAL构建mighttpd2动态?(Why can't cabal build

2019-09-22 02:10发布

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

Answer 1:

您需要安装所有库的动态版本mighttpd2依赖。 cabal-install是正确抱怨的动态版本process-conduit不可用。 你将不得不重新安装mighttpd2的整个依赖树--enable-shared --enable-executable-dynamic传递给cabal-install



文章来源: Why can't cabal build mighttpd2 dynamically?