Blogged by Ujihisa. Standard methods of programming and thoughts including Clojure, Vim, LLVM, Haskell, Ruby and Mathematics written by a Japanese programmer. github/ujihisa

Friday, July 31, 2009

Haskell Platform Instead of MacPorts

Someone hospitably suggested me in this comment to use Haskell Platform instead of MacPorts to install ghc or other haskell libraries.

As most Mac users know, it takes 12+ hours to build ghc. Once you typed sudo port install ghc, you would have to go to bed and sleep for half a day.

The Haskell Platform is a binary package, so now we don't have to

Installing pandoc via Haskell Platform cabal

cabal update
cabal install pandoc

then

Resolving dependencies...
[1 of 1] Compiling Main             ( /var/folders/Dz/Dz5WpFSZGUaFLA8jp8kT5E+++TM/-Tmp-/pandoc-1.2.12656/pandoc-1.2.1/Setup.hs, /var/folders/Dz/Dz5WpFSZGUaFLA8jp8kT5E+++TM/-Tmp-/pandoc-1.2.12656/pandoc-1.2.1/dist/setup/Main.o )
Linking /var/folders/Dz/Dz5WpFSZGUaFLA8jp8kT5E+++TM/-Tmp-/pandoc-1.2.12656/pandoc-1.2.1/dist/setup/setup ...
Configuring pandoc-1.2.1...
Preprocessing library pandoc-1.2.1...
Preprocessing executables for pandoc-1.2.1...
Building pandoc-1.2.1...

src/Text/Pandoc/Shared.hs:118:7:
    Could not find module `Network.URI':
      There are files missing in the `network-2.2.1.4' package,
      try running 'ghc-pkg check'.
      Use -v to see a list of the files searched for.
cabal: Error: some packages failed to install:
pandoc-1.2.1 failed during the building phase. The exception was:
exit: ExitFailure 1
~/.cabal
$ pandoc install network
pandoc: install: openBinaryFile: does not exist (No such file or directory)
$ ghc-pkg check |& grep network-
There are problems in package network-2.2.1.4:
  import-dirs: /Users/ujihisa/.cabal/lib/network-2.2.1.4/ghc-6.10.3 doesn't exist or isn't a directory
  library-dirs: /Users/ujihisa/.cabal/lib/network-2.2.1.4/ghc-6.10.3 doesn't exist or isn't a directory
  include-dirs: /Users/ujihisa/.cabal/lib/network-2.2.1.4/ghc-6.10.3/include doesn't exist or isn't a directory
  cannot find libHSnetwork-2.2.1.4.a on library path
network-2.2.1.4
network-2.2.1
network-2.2.1.1

hmm...

No comments:

Post a Comment

Followers