可以用768 MB的RAM安装yesod吗?

时间:2016-01-04 14:10:27

标签: haskell yesod

我是haskell和yesod的新手。我按照quick start guide安装了yesod。

但是在第3步,当我运行stack install yesod-bin cabal-install --install-ghc命令时,CPU使用率变为100%,过了一段时间,它会引发错误:

~/my-project$ stack install yesod-bin cabal-install --install-ghc
Cabal-1.22.6.0: configure
Progress: 1/108
....
[19 of 79] Compiling Distribution.PackageDescription ( Distribution/PackageDescription.hs, /tmp/stack2919/Cabal-1.22.6.0/.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/setup/Distribution/PackageDescription.o )
    ghc: out of memory (requested 2097152 bytes)

我还发现其他程序已被杀死(Node.js服务器)......

这是我的服务器信息:

~/my-project$ lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                1
On-line CPU(s) list:   0
Thread(s) per core:    1
Core(s) per socket:    1
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 60
Stepping:              1
CPU MHz:               2399.996
BogoMIPS:              4799.99
Hypervisor vendor:     KVM
Virtualization type:   full
L1d cache:             32K
L1i cache:             32K
L2 cache:              4096K
NUMA node0 CPU(s):     0
~/my-project$ free -h
             total       used       free     shared    buffers     cached
Mem:          741M       276M       465M       2.0M       7.2M        68M
-/+ buffers/cache:       201M       540M
Swap:           0B         0B         0B

但是,我在yesod的官方网站上找不到任何硬件。

0 个答案:

没有答案