[Haskell-beginners] Can't install json-.0.4.4 - memory allocation failed
dtenenba at fhcrc.org
Tue Nov 20 22:42:09 CET 2012
Thanks. My goal is also to install pandoc.
The problem is that what I currently have is the latest version of the
Haskell Platform which is available as a binary for Mac OS 10.5.
If I want a more recent Haskell Platform, I need to build from source
(and/or use port or brew) which I haven't been able to do
successfully, but I guess that's a different post....
On Tue, Nov 20, 2012 at 12:52 PM, Rico Moorman <rico.moorman at gmail.com> wrote:
> Hi Dan,
> I actually ran into the same problem installing the json library (as
> requirement of pandoc) some time ago. I solved this by using a more recent
> version of GHC (for linux in my case). I think 6.12.3 is regarded as quite
> I hope this helps.
> Best regards,
> Rico Moorman
> On Mon, Nov 19, 2012 at 7:18 PM, Dan Tenenbaum <dtenenba at fhcrc.org> wrote:
>> Hi all,
>> Please tell me where I should post this if this is not the appropriate
>> I tried to install the json-0.4.4 package on Mac OS 10.5.8, and got this
>> $ sudo cabal install "json-0.4.4"
>> Building json-0.4.4...
>> [1 of 7] Compiling Text.JSON.Types ( Text/JSON/Types.hs,
>> dist/build/Text/JSON/Types.o )
>> [2 of 7] Compiling Text.JSON.Pretty ( Text/JSON/Pretty.hs,
>> dist/build/Text/JSON/Pretty.o )
>> [3 of 7] Compiling Text.JSON.ReadP ( Text/JSON/ReadP.hs,
>> dist/build/Text/JSON/ReadP.o )
>> Warning: A do-notation statement discarded a result of type b.
>> Suppress this warning by saying "_ <- n",
>> or by using the flag -fno-warn-unused-do-bind
>> [4 of 7] Compiling Text.JSON.Parsec ( Text/JSON/Parsec.hs,
>> dist/build/Text/JSON/Parsec.o )
>> ghc: memory allocation failed (requested 2097152 bytes)
>> cabal: Error: some packages failed to install:
>> json-0.4.4 failed during the building phase. The exception was:
>> ExitFailure 1
>> This is on a machine with 16GB of RAM.
>> I don't think
>> applies because I'm using higher versions than mentioned there:
>> $ ghc --version
>> The Glorious Glasgow Haskell Compilation System, version 6.12.3
>> $ cabal --version
>> cabal-install version 0.8.2
>> using version 188.8.131.52 of the Cabal library
>> I know Mac OS 10.5.8 is old, but unfortunately ugrading this
>> particular machine is not an option.
>> Hope someone can help.
>> Beginners mailing list
>> Beginners at haskell.org
More information about the Beginners