www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - OSX Installer

reply "Joshua Niehus" <jm.niehus gmail.com> writes:
I'm trying to write up a tutorial for D+vibed and have stumbled 
on a pretty basic issue.  The DMD installer for OSX fails out of 
the box on Lion and Mountain Lion because Apple got rid of their 
developer command line tools stuff:
http://robots.thoughtbot.com/post/27985816073/the-hitchhikers-guide-to-riding-a-mountain-lion

So basically the install process for new mac users is:
1. Get Xcode
2. Install Command Line tools via Xcode preferences
3. Run DMD mac installer

Obvious first question:
D needs Xcode to run? <sigh>

Is this going to be fixed in the next release or should I just 
point to the .zip package instead?

Thanks,
Josh
Oct 31 2012
parent reply Jacob Carlborg <doob me.com> writes:
On 2012-11-01 06:04, Joshua Niehus wrote:
 I'm trying to write up a tutorial for D+vibed and have stumbled on a
 pretty basic issue.  The DMD installer for OSX fails out of the box on
 Lion and Mountain Lion because Apple got rid of their developer command
 line tools stuff:
 http://robots.thoughtbot.com/post/27985816073/the-hitchhikers-guide-to-riding-a-mountain-lion


 So basically the install process for new mac users is:
 1. Get Xcode
 2. Install Command Line tools via Xcode preferences
 3. Run DMD mac installer

 Obvious first question:
 D needs Xcode to run? <sigh>

 Is this going to be fixed in the next release or should I just point to
 the .zip package instead?
It's not just the installer that depends on having Xcode installed, D depends on it. DMD uses GCC as the linker. If you don't want to install the whole Xcode package, Apple has started to release just the command line tools: https://developer.apple.com/downloads/index.action The package is called "Command Line Tools (<os>) for Xcode", where <os> is "OS X Lion" or "OS X Mountain Lion". You need to register a free account to access this page. This is a non-official alternative: https://github.com/kennethreitz/osx-gcc-installer I think this should be stated at the Downloads page. http://d.puremagic.com/issues/show_bug.cgi?id=8927 -- /Jacob Carlborg
Nov 01 2012
parent "Joshua Niehus" <jm.niehus gmail.com> writes:
On Thursday, 1 November 2012 at 07:30:58 UTC, Jacob Carlborg 
wrote:
 It's not just the installer that depends on having Xcode 
 installed, D depends on it. DMD uses GCC as the linker.
I see, thanks Jacob. I'll stick with the Xcode->cmd line tools instructions then and sprinkle in a little more detail about why.
Nov 01 2012