anammari / pandoc

Automatically exported from code.google.com/p/pandoc
GNU General Public License v2.0
0 stars 0 forks source link

won't build from Cabal #159

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I tried to install Pandoc from cabal on Mac OS X:

11:03 ~ % sudo cabal install pandoc            
Password:Resolving dependencies...
'pandoc-1.2.1' is cached.
[1 of 1] Compiling Main             ( 
/tmp/TMPpandoc-1.2.1/pandoc-1.2.1/Setup.hs, 
/tmp/TMPpandoc-1.2.1/pandoc-1.2.1/dist/setup/Main.o )

/tmp/TMPpandoc-1.2.1/pandoc-1.2.1/Setup.hs:54:39:
    Couldn't match expected type `old-time-1.0.0.1:System.Time.ClockTime'
           against inferred type `ClockTime'
    In the first argument of `return', namely `(TOD 0 0)'
    In the expression: return (TOD 0 0)
    In the expression:
        if isDoesNotExistError e then return (TOD 0 0) else ioError e
cabal: Error: some packages failed to install:
pandoc-1.2.1 failed during the configure step. The exception was:
exit: ExitFailure 1

Original issue reported on code.google.com by mwot...@gmail.com on 10 Aug 2009 at 1:04

GoogleCodeExporter commented 8 years ago
Hm, I was able to cabal install it on my Mac.  What version of ghc do you have?
How did you install ghc?

Original comment by fiddloso...@gmail.com on 10 Aug 2009 at 1:39

GoogleCodeExporter commented 8 years ago
6.10.1, installed from ports.

apfelmus had the same problem, i think: 
http://moonpatio.com/fastcgi/hpaste.fcgi/view?id=3059

not really sure what happened with Time and oldtime.

Original comment by mwot...@gmail.com on 10 Aug 2009 at 1:45

GoogleCodeExporter commented 8 years ago
apfelmus's ghc-pkg list shows that he has old-time-1.0.0.1 in the system package
register and old-time-1.0.0.2 n his local package register.  I have a feeling 
this is
our clue.  (On my system, with Haskell platform ghc, I just have 
old-time-1.0.0.2 in
the system package registry, and pandoc installed fine.)  Does that suggest 
anything?

Could you try 'cabal unpack pandoc; cd pandoc; ghc --make Setup.hs'?  See if 
you get
the same error that way...

Original comment by fiddloso...@gmail.com on 10 Aug 2009 at 2:07

GoogleCodeExporter commented 8 years ago
Got the same error, but I followed your feeling and it turned out to be right - 
i deleted old-time-1.0.0.2 and 
pandoc's installing now. I can leave the issue of upgrading for another day. 
Thanks, sorry for the bogus bug 
report.

Original comment by mwot...@gmail.com on 10 Aug 2009 at 3:35

GoogleCodeExporter commented 8 years ago
Okay, I'll close this bug, though I don't fully understand why having the two
versions of the library installed causes problems.

Original comment by fiddloso...@gmail.com on 13 Aug 2009 at 10:53