3

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
4

1 回答 1

4

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

于 2012-09-02T00:40:33.823 回答