Re: pandoc from cabal / MacPorts ?

I'll CC this to glasgow-haskell-users@haskell.org in case someone else has the same problem. 1. Download http://hackage.haskell.org/packages/archive/pandoc/1.0.0.1/pandoc-1.0.0.1.ta... http://hackage.haskell.org/packages/archive/zip-archive/0.1.1/zip-archive-0.... http://hackage.haskell.org/packages/archive/utf8-string/0.3.1.1/utf8-string-... http://hackage.haskell.org/packages/archive/zlib/0.4.0.4/zlib-0.4.0.4.tar.gz http://hackage.haskell.org/packages/archive/binary/0.4.3.1/binary-0.4.3.1.ta... And install all this packages in reverse order (the last 3 packages are independent) 2. Alternatively you can first install http://hackage.haskell.org/packages/archive/cabal-install/0.5.2/cabal-instal... (versions 0.5.1 or 0.6 will work, too) after installing a further version of Cabal http://hackage.haskell.org/packages/archive/Cabal/1.4.0.2/Cabal-1.4.0.2.tar.... and http://hackage.haskell.org/packages/archive/HTTP/3001.1.3/HTTP-3001.1.3.tar.... http://hackage.haskell.org/packages/archive/zlib/0.4.0.4/zlib-0.4.0.4.tar.gz Once you have cabal, installing is much easier (just "cabal install pandoc"). Installing one of the above *.tar.gz packages works as follows: tar zxf <package-name>.tar.gz cd <package-name> ghc --make Setup.* ./Setup configure ./Setup build ./Setup install cd .. (This Setup.* is either Setup.hs or Setup.lhs) You may supply a "--prefix=/opt/local" to ./Setup configure. Cheers Christian denis wrote:
Greg, Christian, still no luck here in macosx 10.4.11 ppc, port install hs-ghc-paths => the errors in Friday's mail below
I'm probably missing something basic -- should I "port install hs-cabal" before hs-ghc-paths <- haddock <- pandoc ? It seems to have come in with ghc cabal --version => cabal-install version 0.5.1 using version 1.4.0.2 of the Cabal library
port list install | egrep => ghc @6.8.3 lang/ghc hs-HTTP @3001.0.4 devel/hs-HTTP hs-libcabal @1.4.0.2 devel/hs-libcabal hs-zlib @0.4.0.4 devel/hs-zlib
Trying to just configure hs-cabal -- maybe a wrong thing to do -- sudo port clean --all hs-cabal sudo port -v configure hs-cabal # from: sudo port -v configure hs-cabal # run: 13 Oct 2008 11:06 in /opt/local Denis.local mac 10.4.11 ppc
---> Verifying checksum(s) for hs-cabal ---> Checksumming cabal-install-0.5.1.tar.gz ---> Extracting hs-cabal ---> Extracting cabal-install-0.5.1.tar.gz ---> Configuring hs-cabal Configuring cabal-install-0.5.1... Setup: At least the following dependencies are missing: Cabal >=1.4&&<1.5, HTTP >=3000&&<3002, zlib >=0.4 Error: Target org.macports.configure returned: shell command "cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_hs-cabal/work/cabal-install-0.5.1 && runhaskell Setup configure --ghc --prefix=/opt/local" returned error 1 Command output: Configuring cabal-install-0.5.1... Setup: At least the following dependencies are missing: Cabal >=1.4&&<1.5, HTTP >=3000&&<3002, zlib >=0.4
Warning: the following items did not execute (for hs-cabal): org.macports.configure Error: Status 1 encountered during processing.
Also, is there a way of listing dependency chains / trees like ghc <- hs-ghc-paths <- haddock <- pandoc (on all, not just installed, packages) so that one can build them step by step ?
Christian, what's the simplest sequence to build haddock / pandoc from the source pandoc-1.0.0.1.tar.gz without MacPorts ? I just want pandoc, don't care about haskel / ghc / ... at all. The nice pandoc INSTALL says Pandoc needs the `utf8-string` and `zip-archive` to compile. ... On \*nix systems, the easiest way to do this is to install the [cabal-install] tool ... But how do I "cabal list installed-locally", "cabal list-tree-to pandoc" ?
Thanks, cheers -- denis
participants (1)
-
Christian Maeder