snoyberg / markdown

Convert Markdown to HTML, with XSS protection
BSD 3-Clause "New" or "Revised" License
69 stars 401 forks source link

Dependencies and infamous ExitFailure 1 #18

Closed shoooe closed 10 years ago

shoooe commented 10 years ago

I'm trying to install markdown with:

sudo cabal install markdown-0.1.7.1

or

sudo cabal install markdown

And in both cases it tries to install conduit-1.1.0 which fails miserably to install.

24 warnings and 1 error generated. Failed to install conduit-1.1.0 cabal: Error: some packages failed to install: attoparsec-conduit-1.1.0 depends on conduit-1.1.0 which failed to install. conduit-1.1.0 failed during the building phase. The exception was: ExitFailure 1 conduit-extra-1.1.0 depends on conduit-1.1.0 which failed to install. markdown-0.1.7.1 depends on conduit-1.1.0 which failed to install.

Do you have any idea on how to fix this? I've tried to rechace ghc-pkg and reboot the OS but nothing: it always stops there.

snoyberg commented 10 years ago

Is there a reason you're using sudo? What happens if you install without it?

shoooe commented 10 years ago

Just habit. If I try to install without sudo, the same exact thing happens.

snoyberg commented 10 years ago

What's the full output of cabal install conduit?

shoooe commented 10 years ago

Here it is.

snoyberg commented 10 years ago

This looks to be the standard Mavericks CPP bug. Am I correct that you're running OS X Mavericks? There's a workaround available to install GCC's CPP engine, which doesn't have Clang's bugs.

shoooe commented 10 years ago

Yes, correct, I'm running OS X Mavericks.

snoyberg commented 10 years ago

I believe you need to follow these instructions:

http://justtesting.org/post/64947952690/the-glasgow-haskell-compiler-ghc-on-os-x-10-9

shoooe commented 10 years ago

I've actually ended up reinstalling the haskell platform because I've apparently forgot to "patch" it following the instructions for Mavericks. It is currently working fine, but thanks for the support and for that link that might be useful in the future.