cabal install darcs fails on Mac OS X Snow Leopard

I'm unable to install darcs using cabal. It seems to be getting an error configuring haskeline.Can anybody help? Thanks cabal -V cabal-install version 0.6.4 using version 1.6.0.3 of the Cabal library bash-3.2$ ghc -V The Glorious Glasgow Haskell Compilation System, version 6.10.4 bash-3.2$ cabal install darcs Resolving dependencies... [1 of 1] Compiling Main ( /var/folders/Gj/Gj20S2zmFESpNdOqFfUlq++++TI/-Tmp-/haskeline-0.6.2.26747/haskeline-0.6.2.2/Setup.hs, /var/folders/Gj/Gj20S2zmFESpNdOqFfUlq++++TI/-Tmp-/haskeline-0.6.2.26747/haskeline-0.6.2.2/dist/setup/Main.o ) Linking /var/folders/Gj/Gj20S2zmFESpNdOqFfUlq++++TI/-Tmp-/haskeline-0.6.2.26747/haskeline-0.6.2.2/dist/setup/setup ... Configuring haskeline-0.6.2.2... checking whether to use -liconv... using -liconv. *Preprocessing library haskeline-0.6.2.2...* */usr/bin/hsc2hs: line 16: unexpected EOF while looking for matching `"'* */usr/bin/hsc2hs: line 17: syntax error: unexpected end of file* Configuring zlib-0.5.2.0... Preprocessing library zlib-0.5.2.0... /usr/bin/hsc2hs: line 16: unexpected EOF while looking for matching `"' /usr/bin/hsc2hs: line 17: syntax error: unexpected end of file cabal: Error: some packages failed to install: darcs-2.4 depends on zlib-0.5.2.0 which failed to install. hashed-storage-0.4.7 depends on zlib-0.5.2.0 which failed to install. haskeline-0.6.2.2 failed during the building phase. The exception was: exit: ExitFailure 2 zlib-0.5.2.0 failed during the building phase. The exception was: exit: ExitFailure 2 When I installed ghc on Snow Leopard I followed the instructions at http://www.haskell.org/haskellwiki/Mac_OS_X

On Sun, Mar 7, 2010 at 3:44 PM, George Colpitts
/usr/bin/hsc2hs: line 16: unexpected EOF while looking for matching `"' /usr/bin/hsc2hs: line 17: syntax error: unexpected end of file
Sounds like a problem with hsc2hs itself.
When I installed ghc on Snow Leopard I followed the instructions at http://www.haskell.org/haskellwiki/Mac_OS_X
It says: Many packages need hsc2hs. To make it work correctly you need similar hackery: * Open /usr/bin/hsc2hs * Insert --cflag="-m32" --lflag="-m32" before $tflag My best guess is that you mistyped this step and dropped a double quote, or something.

That was it, dropped a double quote, thanks so much !
On Sun, Mar 7, 2010 at 12:13 PM, Ben Millwood
On Sun, Mar 7, 2010 at 3:44 PM, George Colpitts
wrote: /usr/bin/hsc2hs: line 16: unexpected EOF while looking for matching `"' /usr/bin/hsc2hs: line 17: syntax error: unexpected end of file
Sounds like a problem with hsc2hs itself.
When I installed ghc on Snow Leopard I followed the instructions at http://www.haskell.org/haskellwiki/Mac_OS_X
It says: Many packages need hsc2hs. To make it work correctly you need similar hackery: * Open /usr/bin/hsc2hs * Insert --cflag="-m32" --lflag="-m32" before $tflag
My best guess is that you mistyped this step and dropped a double quote, or something.
participants (2)
-
Ben Millwood
-
George Colpitts