Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Running Snow Leopard 10.6.7 on a 2.66 GHz Intel Core 2 Duo iMac.
Installed XCode 4 from the App Store (previous had XCode 3 installed under 10.5).
----
$ uname -a
Darwin iMac.local 10.7.0 Darwin Kernel Version 10.7.0: Sat Jan 29 15:17:16 PST 2011; root:xnu-1504.9.37~1/RELEASE_I386 i386
$ gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ ls -l `which ghc`
lrwxr-xr-x 1 root wheel 65 30 Mar 11:44 /usr/bin/ghc@ -> /Library/Frameworks/GHC.framework/Versions/7.0.2-i386/usr/bin/ghc
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.0.2
$ cabal --version
cabal-install version 0.10.2
using version 1.10.1.0 of the Cabal library
###
### This fails to build...
###
$ cabal install digest
Resolving dependencies...
Configuring digest-0.0.0.9...
cabal: Missing dependency on a foreign library:
* Missing (or bad) header file: zlib.h
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.
If the header file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.
cabal: Error: some packages failed to install:
digest-0.0.0.9 failed during the configure step. The exception was:
ExitFailure 1
###
### This works fine.
###
$ cabal install cgi
Resolving dependencies...
Downloading MonadCatchIO-mtl-0.3.0.2...
Configuring MonadCatchIO-mtl-0.3.0.2...
Preprocessing library MonadCatchIO-mtl-0.3.0.2...
Building MonadCatchIO-mtl-0.3.0.2...
[1 of 1] Compiling Control.Monad.CatchIO ( Control/Monad/CatchIO.hs, dist/build/Control/Monad/CatchIO.o )
Control/Monad/CatchIO.hs:13:1:
Warning: In the use of `E.block'
(imported from Control.Exception.Extensible, but defined in GHC.IO):
Deprecated: "use Control.Exception.mask instead"
Control/Monad/CatchIO.hs:13:1:
Warning: In the use of `E.unblock'
(imported from Control.Exception.Extensible, but defined in GHC.IO):
Deprecated: "use Control.Exception.mask instead"
[1 of 1] Compiling Control.Monad.CatchIO ( Control/Monad/CatchIO.hs, dist/build/Control/Monad/CatchIO.p_o )
Control/Monad/CatchIO.hs:13:1:
Warning: In the use of `E.block'
(imported from Control.Exception.Extensible, but defined in GHC.IO):
Deprecated: "use Control.Exception.mask instead"
Control/Monad/CatchIO.hs:13:1:
Warning: In the use of `E.unblock'
(imported from Control.Exception.Extensible, but defined in GHC.IO):
Deprecated: "use Control.Exception.mask instead"
Registering MonadCatchIO-mtl-0.3.0.2...
Running Haddock for MonadCatchIO-mtl-0.3.0.2...
Preprocessing library MonadCatchIO-mtl-0.3.0.2...
Warning: The documentation for the following packages are not installed. No
links will be generated to these packages: ffi-1.0, rts-1.0
haddock coverage for dist/build/tmp1265/Control/Monad/CatchIO.hs: 11/13 85%
Documentation created: dist/doc/html/MonadCatchIO-mtl/index.html
Installing library in
/Users/mreid/Library/Haskell/ghc-7.0.2/lib/MonadCatchIO-mtl-0.3.0.2/lib
Registering MonadCatchIO-mtl-0.3.0.2...
Downloading cgi-3001.1.8.2...
Configuring cgi-3001.1.8.2...
Preprocessing library cgi-3001.1.8.2...
Building cgi-3001.1.8.2...
[1 of 8] Compiling Network.CGI.Header ( Network/CGI/Header.hs, dist/build/Network/CGI/Header.o )
Network/CGI.hs:1:16:
Warning: -fallow-overlapping-instances is deprecated: use -XOverlappingInstances or pragma {-# LANGUAGE OverlappingInstances #-} instead
Network/CGI/Monad.hs:1:16:
Warning: -fglasgow-exts is deprecated: Use individual extensions instead
[2 of 8] Compiling Network.CGI.Multipart ( Network/CGI/Multipart.hs, dist/build/Network/CGI/Multipart.o )
[3 of 8] Compiling Network.CGI.Protocol ( Network/CGI/Protocol.hs, dist/build/Network/CGI/Protocol.o )
[4 of 8] Compiling Network.CGI.Monad ( Network/CGI/Monad.hs, dist/build/Network/CGI/Monad.o )
[5 of 8] Compiling Network.CGI.Accept ( Network/CGI/Accept.hs, dist/build/Network/CGI/Accept.o )
[6 of 8] Compiling Network.CGI.Cookie ( Network/CGI/Cookie.hs, dist/build/Network/CGI/Cookie.o )
[7 of 8] Compiling Network.CGI.Compat ( Network/CGI/Compat.hs, dist/build/Network/CGI/Compat.o )
[8 of 8] Compiling Network.CGI ( Network/CGI.hs, dist/build/Network/CGI.o )
[1 of 8] Compiling Network.CGI.Header ( Network/CGI/Header.hs, dist/build/Network/CGI/Header.p_o )
Network/CGI.hs:1:16:
Warning: -fallow-overlapping-instances is deprecated: use -XOverlappingInstances or pragma {-# LANGUAGE OverlappingInstances #-} instead
Network/CGI/Monad.hs:1:16:
Warning: -fglasgow-exts is deprecated: Use individual extensions instead
[2 of 8] Compiling Network.CGI.Multipart ( Network/CGI/Multipart.hs, dist/build/Network/CGI/Multipart.p_o )
[3 of 8] Compiling Network.CGI.Protocol ( Network/CGI/Protocol.hs, dist/build/Network/CGI/Protocol.p_o )
[4 of 8] Compiling Network.CGI.Monad ( Network/CGI/Monad.hs, dist/build/Network/CGI/Monad.p_o )
[5 of 8] Compiling Network.CGI.Accept ( Network/CGI/Accept.hs, dist/build/Network/CGI/Accept.p_o )
[6 of 8] Compiling Network.CGI.Cookie ( Network/CGI/Cookie.hs, dist/build/Network/CGI/Cookie.p_o )
[7 of 8] Compiling Network.CGI.Compat ( Network/CGI/Compat.hs, dist/build/Network/CGI/Compat.p_o )
[8 of 8] Compiling Network.CGI ( Network/CGI.hs, dist/build/Network/CGI.p_o )
Registering cgi-3001.1.8.2...
Running Haddock for cgi-3001.1.8.2...
Preprocessing library cgi-3001.1.8.2...
Warning: The documentation for the following packages are not installed. No
links will be generated to these packages: ffi-1.0, rts-1.0
haddock coverage for dist/build/tmp1265/Network/CGI/Header.hs: 11/24 46%
haddock coverage for dist/build/tmp1265/Network/CGI/Multipart.hs: 7/15 47%
haddock coverage for dist/build/tmp1265/Network/CGI/Protocol.hs: 25/26 96%
haddock coverage for dist/build/tmp1265/Network/CGI/Monad.hs: 14/14 100%
haddock coverage for dist/build/tmp1265/Network/CGI/Accept.hs: 2/9 22%
haddock coverage for dist/build/tmp1265/Network/CGI/Cookie.hs: 7/7 100%
haddock coverage for dist/build/tmp1265/Network/CGI/Compat.hs: 4/5 80%
haddock coverage for dist/build/tmp1265/Network/CGI.hs: 83/95 87%
Warning: Network.CGI: could not find link destinations for:
Network.CGI.Header.HeaderValue
Documentation created: dist/doc/html/cgi/index.html
Installing library in
/Users/mreid/Library/Haskell/ghc-7.0.2/lib/cgi-3001.1.8.2/lib
Registering cgi-3001.1.8.2...
Updating documentation index /Users/mreid/Library/Haskell/doc/index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment