[Haskell-cafe] Re: Installing wx via cabal

Christian Maeder Christian.Maeder at dfki.de
Mon Feb 22 06:30:46 EST 2010


Dušan Kolář schrieb:
> Dear all,
> 
>   Running cabal install --global wx stops very soon with the following
> error.
> 
> Building wxcore-0.12.1.2...
[...]
> dist/build/Graphics/UI/WXCore/WxcClassesAL.o )
> ghc: out of memory (requested 1048576 bytes)
> cabal: Error: some packages failed to install:
> 
> It seems quite strange as the machine seems to have 16GB RAM and a free
> swap, can I somehow put options or so? I have ghc 10.4. installed.

You may set the environment variable GHCRTS to allow more memory:

  export GHCRTS='-M3g'

Type "ghc +RTS -?" to see more options"

Cheers Christian



More information about the Haskell-Cafe mailing list