【发布时间】:2017-09-11 01:41:11
【问题描述】:
我在具有 768MB 内存和 512MB 交换空间的容器上运行。我不能增加这两个。 cabal install criterion 总是给
Failed during the building phase.
The exception was: ExitFailure (-9)
This may be due to an out-of-memory condition.
在Compiling Criterion.Types 期间。有什么办法可以解决这个问题,还是我必须在没有标准的情况下凑合?
【问题讨论】:
-
尝试在 GHC 上设置 RTS 标志以限制其内存使用 (
--ghc-options="+RTS -M600M") 并避免并行运行多个作业 (-j1)。 -
谢谢!如果您将其写为答案,我会接受
-
真的有用吗?!
-
就像一个魅力:)
标签: haskell memory installation cabal criterion