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


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...

    Could not find module `Network.URI':
      There are files missing in the `network-' 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
$ 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-
  import-dirs: /Users/ujihisa/.cabal/lib/network- doesn't exist or isn't a directory
  library-dirs: /Users/ujihisa/.cabal/lib/network- doesn't exist or isn't a directory
  include-dirs: /Users/ujihisa/.cabal/lib/network- doesn't exist or isn't a directory
  cannot find libHSnetwork- on library path


No comments:

Post a Comment