January 08, 2013
On 2013-01-08 05:00, Elias Zamaria wrote:
> I am trying to upgrade to DMD 2.061. What am I supposed to do? I tried
> running the installer but I got the same error I got the last time (see
> http://forum.dlang.org/thread/yrcyfaalimocuovsvgqo@forum.dlang.org or
> http://forum.dlang.org/thread/bug-8682-3@http.d.puremagic.com/issues/).
>
> Jacob, do I need you to custom-make a non-broken installer like you did
> for 2.060? Is that something I can realistically do myself if I don't
> know much about D or OS X installers? Why isn't something like this on
> the download page?

I've created a pull request which should fix this problem. In the meantime I have created a new installer:

https://dl.dropbox.com/u/18386187/DMD2/DMD2.pkg

https://github.com/D-Programming-Language/installer/pull/12

-- 
/Jacob Carlborg
January 14, 2013
I don't have Xcode. I will try installing it and seeing how it influences the D installer.

On Tuesday, 8 January 2013 at 04:58:00 UTC, Joshua Niehus wrote:
> On Tuesday, 8 January 2013 at 04:00:25 UTC, Elias Zamaria wrote:
>> Can anyone help me with this?
>
> Do you have Xcode installed?
> If so, do you have "Command Line Tools" installed?
> Otherwise, you'll need to install Xcode (free from app store), then:
> Open Xcode -> Preferences -> Downloads -> Components -> Command Line Tools
>
> related thread:
> http://forum.dlang.org/thread/nxawipcegdmbkqkalkhv@forum.dlang.org

January 14, 2013
I tried getting it from the app store and got an error dialog saying "Xcode can't be installed on Macintosh HD because Mac OS X version 10.7.4 or later is required.". I am trying to find an older version that will work on 10.6 but so far I haven't found a way to get it without creating an Apple Developer account. I am not sure if I am willing to do that.

On Monday, 14 January 2013 at 05:28:50 UTC, Elias Zamaria wrote:
> I don't have Xcode. I will try installing it and seeing how it influences the D installer.
>
> On Tuesday, 8 January 2013 at 04:58:00 UTC, Joshua Niehus wrote:
>> On Tuesday, 8 January 2013 at 04:00:25 UTC, Elias Zamaria wrote:
>>> Can anyone help me with this?
>>
>> Do you have Xcode installed?
>> If so, do you have "Command Line Tools" installed?
>> Otherwise, you'll need to install Xcode (free from app store), then:
>> Open Xcode -> Preferences -> Downloads -> Components -> Command Line Tools
>>
>> related thread:
>> http://forum.dlang.org/thread/nxawipcegdmbkqkalkhv@forum.dlang.org

January 14, 2013
Jacob, can I just run the commands or do I need to be in a specific directory (/usr or /usr/bin or something like that)? Do I need to replace the ${MAKER} string? If so, with what?

On Tuesday, 8 January 2013 at 07:57:46 UTC, Jacob Carlborg wrote:
> On 2013-01-08 05:00, Elias Zamaria wrote:
>> I am trying to upgrade to DMD 2.061. What am I supposed to do? I tried
>> running the installer but I got the same error I got the last time (see
>> http://forum.dlang.org/thread/yrcyfaalimocuovsvgqo@forum.dlang.org or
>> http://forum.dlang.org/thread/bug-8682-3@http.d.puremagic.com/issues/).
>
> We need to fix that somehow. I have an idea that might fix this.
>
>> Jacob, do I need you to custom-make a non-broken installer like you did
>> for 2.060? Is that something I can realistically do myself if I don't
>> know much about D or OS X installers? Why isn't something like this on
>> the download page?
>
> Yes, it's fairly easy to do. Download the zip as you did and run these commands:
>
> https://github.com/D-Programming-Language/installer/blob/master/osx/Makefile#L32
>
> The commands between line 33 and 42. You have to replace the $1 and $2 with 2.061 and 2.
>
>> I downloaded the zip
>> (http://downloads.dlang.org.s3-website-us-east-1.amazonaws.com/releases/2013/dmd.2.061.zip
>> . Is this the right one?) but I don't know what to do with it. I am
>> guessing some stuff should go in /usr/bin and some other stuff should go
>> in /usr/share but I don't know what.
>>
>> Can anyone help me with this?
>
> The installer installs the compiler into /usr/share/dmd if I recall correctly. It then creates symlinks to /usr/bin. You need to replace the following:
>
> /usr/share/dmd/bin
> /usr/share/dmd/lib
> /usr/share/dmd/src
>
> With the same folders from the zip.
>
> I do really recommend DVM instead, even if it's not an official way to install DMD. It's easy and allows you to have multiple compilers installed:
>
> https://github.com/jacob-carlborg/dvm

January 14, 2013
On 2013-01-14 06:28, Elias Zamaria wrote:
> I don't have Xcode. I will try installing it and seeing how it
> influences the D installer.

You do need Xcode regardless of how you install D. You can download older versions here:

https://developer.apple.com/downloads/index.action

Search for "Xcode" and go to the third page. I think you should be able to run the latest version of Xcode 3.

Make sure you install the command line tools.

-- 
/Jacob Carlborg
January 14, 2013
On Mon, 2013-01-14 at 06:32 +0100, Elias Zamaria wrote:
> I tried getting it from the app store and got an error dialog saying "Xcode can't be installed on Macintosh HD because Mac OS X version 10.7.4 or later is required.". I am trying to find an older version that will work on 10.6 but so far I haven't found a way to get it without creating an Apple Developer account. I am not sure if I am willing to do that.

I am having a similar problem trying to get Xcode 4 for Snow Leopard. Clearly Apple's policy is that anything other than currently purchasable hardware is out-of-date legacy and should be immediately disposed of, to be replaced with something new and shiny. Not what I would call quality customer care.

Getting an Apple Developer account will almost certainly be necessary to get Xcode. I recollect having to sign up, but nothing bad has happened because of it as far as I know.

-- 
Russel. ============================================================================= Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder@ekiga.net 41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel@winder.org.uk London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder


January 14, 2013
On 2013-01-14 06:40, Elias Zamaria wrote:
> Jacob, can I just run the commands or do I need to be in a specific
> directory (/usr or /usr/bin or something like that)? Do I need to
> replace the ${MAKER} string? If so, with what?

You first need to install Xcode. Which you will need regardless of how you install D.

The safest would be to clone the installer repository and run the commands from the same directory that makefile is located in.

* Replace ${MAKER} with /Developer/usr/bin/packagemaker
* Replace $1 with 2.061
* Replace $2 with 2
* You don't need to run the "hdiutil" command

You might want to try downloading the installer again. I've fixed the issue but I don't know if a new installer has been uploaded since I did that.

-- 
/Jacob Carlborg
January 14, 2013
On 2013-01-14 08:38, Russel Winder wrote:

> I am having a similar problem trying to get Xcode 4 for Snow Leopard.
> Clearly Apple's policy is that anything other than currently purchasable
> hardware is out-of-date legacy and should be immediately disposed of, to
> be replaced with something new and shiny. Not what I would call quality
> customer care.

Xcode is not available on Snow Leopard. Perhaps that's what you're saying.

> Getting an Apple Developer account will almost certainly be necessary to
> get Xcode. I recollect having to sign up, but nothing bad has happened
> because of it as far as I know.

Yes, you need a free developer account. It might work with an iTunes/App Store account as well.

Older versions of Xcode are available here:

https://developer.apple.com/downloads/index.action

-- 
/Jacob Carlborg
January 14, 2013
On Mon, 2013-01-14 at 09:11 +0100, Jacob Carlborg wrote: […]
> Xcode is not available on Snow Leopard. Perhaps that's what you're saying.

I have Xcode 3, but cannot find a way of getting Xcode 4 for Snow Leopard.

-- 
Russel. ============================================================================= Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder@ekiga.net 41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel@winder.org.uk London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder


January 14, 2013
On 2013-01-14 09:28, Russel Winder wrote:
> On Mon, 2013-01-14 at 09:11 +0100, Jacob Carlborg wrote:
> […]
>> Xcode is not available on Snow Leopard. Perhaps that's what you're saying.
>
> I have Xcode 3, but cannot find a way of getting Xcode 4 for Snow
> Leopard.

Because it's not available for Snow Leopard.

-- 
/Jacob Carlborg