Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to compile pandoc 1.11.1 from gitit source #803

Closed
linquize opened this issue Mar 26, 2013 · 5 comments
Closed

Fail to compile pandoc 1.11.1 from gitit source #803

linquize opened this issue Mar 26, 2013 · 5 comments

Comments

@linquize
Copy link

I compile gitit from source, but get the following error

src/Text/Pandoc/Writers/HTML.hs:224:17:
No instance for (Monoid Attribute)
arising from a use of `mempty'
Possible fix: add an instance declaration for (Monoid Attribute)
In the expression: mempty
In a case alternative: "" -> mempty
In the expression:
case s of {
"" -> mempty
_ -> A.id $ toValue $ writerIdentifierPrefix opts ++ s }
cabal: Error: some packages failed to install:
gitit-0.10.3.1 depends on pandoc-1.11.1 which failed to install.
pandoc-1.11.1 failed during the building phase. The exception was:
ExitFailure 1

@jgm
Copy link
Owner

jgm commented Mar 26, 2013

That's odd. What version of blaze-html are you compiling against?
(ghc-pkg list should tell you)

+++ linquize [Mar 26 13 08:40 ]:

I compile gitit from source, but get the following error

src/Text/Pandoc/Writers/HTML.hs:224:17:
No instance for (Monoid Attribute)
arising from a use of `mempty'
Possible fix: add an instance declaration for (Monoid Attribute)
In the expression: mempty
In a case alternative: "" -> mempty
In the expression:
case s of {
"" -> mempty
_ -> A.id $ toValue $ writerIdentifierPrefix opts ++ s }
cabal: Error: some packages failed to install:
gitit-0.10.3.1 depends on pandoc-1.11.1 which failed to install.
pandoc-1.11.1 failed during the building phase. The exception was:
ExitFailure 1


Reply to this email directly or [1]view it on GitHub.
[xJAuenYDiIoVt3LF3y684-CztIsbJ3kRGXkcN5vHdAg7iWb0hjJfMl7jEdaBWkN4.gif]

References

  1. Fail to compile pandoc 1.11.1 from gitit source #803

@linquize
Copy link
Author

blaze-builder-0.3.1.0
blaze-html-0.4.3.1

@jgm
Copy link
Owner

jgm commented Mar 26, 2013

It seems that the Monoid insntance for Attribute wasn't added til 0.5.
Is upgrading blaze-html to a more recent version an option for you?

+++ linquize [Mar 26 13 09:18 ]:

blaze-html 0.4.3.1

--
Reply to this email directly or [1]view it on GitHub.
[xJAuenYDiIoVt3LF3y684-CztIsbJ3kRGXkcN5vHdAg7iWb0hjJfMl7jEdaBWkN4.gif]

References

  1. Fail to compile pandoc 1.11.1 from gitit source #803 (comment)

@jgm jgm closed this as completed in ba1e74d Mar 26, 2013
@tim-peterson
Copy link

For the life of me I can't figure out how to install pandoc. I tried the approach recommended on this Github repo as well as all 3 approaches recommended on the pandoc site. I'm installing on Ubuntu 12.04 so I first did sudo apt-get install haskell-platform.

Here's where the error occurred at each step:

1) Installing as recommended on this repo:

# cabal install --enable-tests
Registering zlib-conduit-1.0.0...
cabal: Error: some packages failed to install:
http-conduit-1.9.4.5 depends on mime-types-0.1.0.3 which failed to install.
mime-types-0.1.0.3 failed during the building phase. The exception was:
ExitFailure 9
pandoc-1.12 depends on mime-types-0.1.0.3 which failed to install.

2) Primary installation method on Pandoc site:

# cabal install pandoc
[35 of 45] Compiling Text.Pandoc.Parsing ( src/Text/Pandoc/Parsing.hs, dist/build/Text/Pandoc/Parsing.o )
cabal: Error: some packages failed to install:
pandoc-1.11.1 failed during the building phase. The exception was:
ExitFailure 9

3) "If my distribution has GHC 6.12"

# cabal install cabal-install
[46 of 67] Compiling Distribution.Simple.LocalBuildInfo ( Distribution/Simple/LocalBuildInfo.hs, dist/build/Distribution/Simple/LocalBuildInfo.o )
cabal: Error: some packages failed to install:
Cabal-1.16.0.3 failed during the building phase. The exception was:
ExitFailure 9
cabal-install-1.16.0.2 depends on Cabal-1.16.0.3 which failed to install.

4) Installing the tarball:

# cabal install pandoc
[23 of 45] Compiling Text.Pandoc.Writers.Texinfo ( src/Text/Pandoc/Writers/Texinfo.hs, dist/build/Text/Pandoc/Writers/Texinfo.o )
cabal: Error: some packages failed to install:
pandoc-1.11.1 failed during the building phase. The exception was:
ExitFailure 9

@tim-peterson
Copy link

this solved my problem:

sudo apt-get install pandoc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants