Simple script to make existing GHC or HP installation work with Xcode 5

George Colpitts george.colpitts at gmail.com
Thu Nov 7 00:49:06 GMT 2013


on os 10.9/Xcode 5 with your script on top of os 10.9/Xcode 5 I get the
following errors, not sure if they have anything to do with your script but
before without it I believe I installed Cairo on 10.8/Xcode 4:

 cabal install cairo
Resolving dependencies...
[1 of 2] Compiling SetupWrapper     (
/var/folders/9b/rh4y2gy92hgdb6ktv4df1jv00000gn/T/cairo-0.12.4-12189/cairo-0.12.4/SetupWrapper.hs,
/var/folders/9b/rh4y2gy92hgdb6ktv4df1jv00000gn/T/cairo-0.12.4-12189/cairo-0.12.4/dist/setup/SetupWrapper.o
)

/var/folders/9b/rh4y2gy92hgdb6ktv4df1jv00000gn/T/cairo-0.12.4-12189/cairo-0.12.4/SetupWrapper.hs:94:45:
    Ambiguous occurrence `moreRecentFile'
    It could refer to either `SetupWrapper.moreRecentFile',
                             defined at
/var/folders/9b/rh4y2gy92hgdb6ktv4df1jv00000gn/T/cairo-0.12.4-12189/cairo-0.12.4/SetupWrapper.hs:149:1
                          or `Distribution.Simple.Utils.moreRecentFile',
                             imported from `Distribution.Simple.Utils' at
/var/folders/9b/rh4y2gy92hgdb6ktv4df1jv00000gn/T/cairo-0.12.4-12189/cairo-0.12.4/SetupWrapper.hs:8:1-32

/var/folders/9b/rh4y2gy92hgdb6ktv4df1jv00000gn/T/cairo-0.12.4-12189/cairo-0.12.4/SetupWrapper.hs:95:45:
    Ambiguous occurrence `moreRecentFile'
    It could refer to either `SetupWrapper.moreRecentFile',
                             defined at
/var/folders/9b/rh4y2gy92hgdb6ktv4df1jv00000gn/T/cairo-0.12.4-12189/cairo-0.12.4/SetupWrapper.hs:149:1
                          or `Distribution.Simple.Utils.moreRecentFile',
                             imported from `Distribution.Simple.Utils' at
/var/folders/9b/rh4y2gy92hgdb6ktv4df1jv00000gn/T/cairo-0.12.4-12189/cairo-0.12.4/SetupWrapper.hs:8:1-32
Failed to install cairo-0.12.4
cabal: Error: some packages failed to install:
cairo-0.12.4 failed during the configure step. The exception was:
ExitFailure 1





On Thu, Oct 31, 2013 at 4:04 AM, Mark Lentczner <mark.lentczner at gmail.com>wrote:

> Friends -
>
> I've developed a simple shell script that should enable your existing GHC
> 7. or HP installation work with Xcode 5.
>
> https://gist.github.com/mzero/7245290
>
>
> Place that script somewhere, make it executable, and run it.
> *Then follow the instructions it tells you!*
> You will end up having to run it more than once:
>
> First time it will tell you where to install a copy of the script
>
> Second time it will patch your GHC settings file(s)
>
>
> The script is safe to install and setup before you upgrade to Xcode 5, as
> it reverts to "getting out of the way" if it detects Xcode 4 based
> installation.
>
> It has been tested on two machines:
>
>    - OS X 10.8 and Xcode 4
>    - OS X 10.9 and Xcode 5
>
> If a few more intrepid souls test it and it works, I'll post instructions
> in more prominent places!
> I'll be testing OS X 10.9 and Xcode 4, tomorrow, and expect it should work
> fine on OS X10.8 with Xcode 5. But looking for reports that it all works.
>
> - Mark "Mac Packager" Lentczner
>
>
>
>
>
> _______________________________________________
> Haskell-platform mailing list
> Haskell-platform at projects.haskell.org
> http://projects.haskell.org/cgi-bin/mailman/listinfo/haskell-platform
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://projects.haskell.org/pipermail/haskell-platform/attachments/20131106/5c446b7b/attachment.htm>


More information about the Haskell-platform mailing list