ExitFailure 9 when trying to install ghc-mod using Cabal

前端 未结 1 1137
眼角桃花
眼角桃花 2020-12-13 04:32

When I try to install it with cabal, I get

~$ cabal install ghc-mod
Resolving dependencies...
[1 of 1] Compiling Main             ( /tmp/haskell-src-exts-1.1         


        
相关标签:
1条回答
  • 2020-12-13 05:07

    It turned out to be a running-out-of-memory issue, as hammar suspected. I was able to get it to install (although it was painfully slow) by adding a 1GB swap file to the system:

    dd if=/dev/zero of=/swapfile bs=1M count=1024
    mkswap /swapfile
    swapon /swapfile
    

    Apparently EC2 instances come without swap by default.

    0 讨论(0)
提交回复
热议问题