demydd / pandoc

Automatically exported from code.google.com/p/pandoc
0 stars 0 forks source link

Installation through cabal fails #52

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I just today pulled from the SVN repository to try out Pandoc. This is what
happened:
gwern@localhost:1034~/bin/pandoc>runhaskell Setup configure -v &&
runhaskell Setup build -v && runhaskell Setup install             [ 2:43PM]
Configuring pandoc-0.47...
Flags chosen: splitbase=True
Dependency base>=3: using base-3.0.1.0
Dependency pretty-any: using pretty-1.0.0.0
Dependency containers-any: using containers-0.1.0.1
Dependency parsec-any: using parsec-2.1.0.0
Dependency xhtml-any: using xhtml-3000.0.2.1
Dependency mtl-any: using mtl-1.1.0.0
Dependency regex-compat-any: using regex-compat-0.71.0.1
Dependency network-any: using network-2.1.0.0
Using compiler: ghc-6.8.2
Using install prefix: /usr/local
Binaries installed in: /usr/local/bin
Libraries installed in: /usr/local/lib/pandoc-0.47/ghc-6.8.2
Private binaries installed in: /usr/local/libexec
Data files installed in: /usr/local/share/pandoc-0.47
Documentation installed in: /usr/local/share/doc/pandoc-0.47
Using alex version 2.2 found on system at: /usr/bin/alex
Using ar found on system at: /usr/bin/ar
Using c2hs version 0.15.1 found on system at: /usr/bin/c2hs
Using cpphs version 1.5 found on system at: /usr/bin/cpphs
No ffihugs found
Using ghc version 6.8.2 found on system at: /usr/bin/ghc
Using ghc-pkg version 6.8.2 found on system at: /usr/bin/ghc-pkg
No greencard found
Using haddock version 2.0.0.0 found on system at: /usr/bin/haddock
Using happy version 1.17 found on system at: /usr/bin/happy
No hmake found
Using hsc2hs version 0.66-ghc found on system at: /usr/bin/hsc2hs
Using hscolour version 1.9 found on system at: /usr/bin/HsColour
No hugs found
No jhc found
Using ld found on system at: /usr/bin/ld
No nhc98 found
No pfesetup found
Using pkg-config version 0.22 found on system at: /usr/bin/pkg-config
Using ranlib found on system at: /usr/bin/ranlib
Using tar found on system at: /bin/tar
Creating dist/build (and its parents)
Creating dist/build/autogen (and its parents)
Preprocessing library pandoc-0.47...
Setup: can't find source for Text.Pandoc.ASCIIMathML in ["."]

If I copy ASCIIMathML.hs from templates/ to Text/Pandoc/ASCIIMathML.hs and
so on for all the other errors, it works.

Original issue reported on code.google.com by gwe...@gmail.com on 24 Jan 2008 at 7:44

GoogleCodeExporter commented 8 years ago
The svn repository version is designed to be built with GNU Make.
So, you need to do 'make'.  This builds some of the source files,
including Text/Pandoc/ASCIIMathML.hs, from templates, and then configures
and builds using Cabal.

If you want to do the Cabal build manually, do 'make templates' first.
(What you've done above may compile, but it will cause
errors later, because the templates haven't been filled yet.  You should
do a 'make clean' to undo this, before running 'make templates'.)

Note that the release tarballs (on Google Code and HackageDB) are designed to 
be 
built using Cabal, and these steps have already been performed.  You might
reasonably have assumed it would work the same way in the repository.

Original comment by fiddloso...@gmail.com on 24 Jan 2008 at 8:00

GoogleCodeExporter commented 8 years ago
Yes - the INSTALL file's cabal section didn't mention any need to do a make or 
make
templates first.

Original comment by gwe...@gmail.com on 24 Jan 2008 at 8:05

GoogleCodeExporter commented 8 years ago
You're right. I'll add a note about that.

Original comment by fiddloso...@gmail.com on 24 Jan 2008 at 8:21