I just did a fresh installation of Mac OS X Lion, and installed Xcode 4.3 & Haskell platform 2011.4.0.0.
When I tried installing packages by Cabal, I got the following error:
cabal install cabal-install
Resolving dependencies...
Configuring cabal-install-0.10.2...
ghc: could not execute: /Developer/usr/bin/gcc
cabal: Error: some packages failed to install:
cabal-install-0.10.2 failed during the configure step. The exception was:
ExitFailure 1
I found Xcode 4.3 is not installed in /Developer any longer. Actually, gcc can be found in /usr/bin.
I tried cabal install flag --with-gcc /usr/bin/gcc (and --with-gcc=/usr/bin/gcc). It doesn't work.
I tried to create a link of gcc in /Developer/usr/bin, but gcc complains it cannot find some files.
Any ideas?
Thanks