我正在一个只有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.
在编译Criterion.Types
时出现了问题。有没有什么解决方法或者我只能放弃使用 criterion?
--ghc-options="+RTS -M600M"
),并避免并行运行多个作业 (-j1
)。 - Li-yao Xia