
=0.9.0 is required but it could not be found. cabal: Error: some packages failed to install:
I got the following errors. Does anybody know how to fix it? Thanks. ~$ cabal install libxml-sax Resolving dependencies... Configuring libxml-sax-0.7.5... Failed to install libxml-sax-0.7.5 Last 10 lines of the build log ( /Users/pengy/.cabal/logs/libxml-sax-0.7.5.log ): Configuring libxml-sax-0.7.5... setup-Cabal-1.18.1.4-x86_64-osx-ghc-7.8.3: The program pkg-config version libxml-sax-0.7.5 failed during the configure step. The exception was: ExitFailure 1 -- Regards, Peng

On Fri, Apr 24, 2015 at 11:38 AM, Peng Yu
setup-Cabal-1.18.1.4-x86_64-osx-ghc-7.8.3: The program pkg-config version
=0.9.0 is required but it could not be found.
Yes. You need some C libraries and some of the glue that they use (it's not like libxml2 has been rewritten in Haskell; we FFI to it). You can get pkg-config and libxml2 from MacPorts or Homebrew; Apple does not ship pkg-config and ships only an out of date version of libxml2 --- with the pkg-config data that allows other programs to more easily link to it stripped. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
participants (2)
-
Brandon Allbery
-
Peng Yu