Stop! Tickets are now managed at GitHub.

Please enter new tickets, and find and edit existing tickets there:


Ticket #194 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Cannot install on OS X Lion 10.7.3 with Xcode 4.3

Reported by: guest Owned by: MtnViewMark
Priority: major Milestone: 2012.2.0.0
Component: OSX installer Keywords: Xcode 4.3
Cc: uszkaygj@…, markl@…

Description

Greetings. I just got a new Mac running OS X Lion 10.7.3. I also installed Xcode 4.3 from the Apple App Store.

I have read the haskellwiki suggestion that MacOSX10.5.sdk is required to install the HP.

First, it appears to me that this sdk *is* installed with Xcode 4.3. At least, I see it in the SDK directory. This SDK is not, however, selectable in the Xcode build settings for a project.

I also installed Xcode 3.2 from my Snow Leopard retail disc, although I don't know what good that will do, since the 10.5 sdk is already in the main /Developer/SDKs directory.

Bottom line: How do I install the HP with Lion 10.7.3 and Xcode 4.3?

Change History

  Changed 3 years ago by guszkay

  • cc uszkaygj@… added

I have the same issue, and have tried installing Xcode 3.2.6, Xcode 4.2.1 and Xcode 4.3, and also tried installing the older Haskell Platform 2011.2.0.1-i386.pkg. Xcode is working, so is installed. Perhaps the error message could explain exactly what the Platform is looking for instead of incorrectly assuming Xcode is not installed?

  Changed 3 years ago by guszkay

I installed the Xcode "Command Line Tools" and the platform accepted this and proceeded through the install. The install is available in the Xcode application under "Xcode - Preferences - Downloads - Command Line Tools (install)".

follow-up: ↓ 4   Changed 3 years ago by guest

It appears that earlier versions of Xcode came bundled with tools such as gcc, but this is no longer the case for Xcode 4.3 (which according to the app store was released 16 February 2012). There is a section in the help called "New Features in Xcode 4.3" which explains:

Command-Line Tools Are Optional

"The command-line tools are not bundled with Xcode 4.3 by default. Instead, they can be installed optionally using the Components tab of the Downloads preferences panel as shown in Figure 3."

A possible fix is to change the installer message to indicate that for Xcode 4.3 and above, the command-line tools component also needs to be downloaded in addition to the base Xcode installation.

(As an "interesting" consequence, note that installing Xcode only requires an app store login, whereas downloading the command-line tools component requires a registered Apple Developer account. Although registering as an Apple Developer is free, it is still frustrating that Apple requires its customers to jump through so many hoops just to get a C compiler for the platform!)

- toddmowen

in reply to: ↑ 3   Changed 3 years ago by George

Installing the Command line tools did not solve the problem for me. To be precise I could install but not compile with ghc as ghc tries to use /Developer/usr/bin/gcc. I solved the problem by editing the shell file /usr/bin/ghc (actually /Library/Frameworks/GHC.framework/Versions/7.0.4-x86_64/usr/bin/ghc-7.0.4) and changing the line

pgmgcc="/Developer/usr/bin/gcc"

to

pgmgcc="/usr/bin/gcc"

  Changed 3 years ago by MtnViewMark

  • milestone set to 2012.2.0.0

  Changed 3 years ago by MtnViewMark

  • cc markl@… added

  Changed 3 years ago by MtnViewMark

  • cc markl@… removed

  Changed 3 years ago by MtnViewMark

  • cc markl@… added

  Changed 3 years ago by MtnViewMark

  • owner changed from gregorycollins to MtnViewMark

  Changed 3 years ago by MtnViewMark

  • status changed from new to closed
  • resolution set to fixed

The 2012.2.0.0 HP installer for Mac OS X will now work with the "Command Line Tools for Xcode" installed - whether or not you have Xcode itself installed! The installer and GHC in the 2012.2.0.0 installer are set to only find tools in /usr/bin, which will work with all versions of Xcode, if you have installed the optional tools component. See the Mac OS X installer page on the platform website for details (when it goes live in the next 24 hours).

Note: See TracTickets for help on using tickets.