When I try to use the version of cabal from the repositories every command gives an out of memory error.
$ cabal install hedis
cabal: out of memory (requested 2097152 bytes)
$ cabal update
Downloading the latest package list from hackage.haskell.org
cabal: out of memory (requested 2097152 bytes)
This is using the versions of cabal and GHC obtained by installing the haskell-platform package (cabal version 1.16.0.2 and GHC version 7.6.3).
EDIT:
The results of running free is:
free -h
total used free shared buffers cached
Mem: 994M 647M 346M 356K 4.2M 59M
-/+ buffers/cache: 583M 410M
Swap: 0B 0B 0B
so it would appear not to be a problem with actually running an actual running out of RAM issue. The hardware is a DigitalOcean VPS.
free
) What hardware are you using? you could alwaysstrace
your command, and see where it is requesting 2,097,152 bytes, then look to see why it wants 2,097,152 bytes. – waltinator Jan 05 '15 at 17:55man swapon
. – waltinator Mar 12 '15 at 17:54