Re: Mac OS installer

2013-01-26 Thread Jacob Carlborg

On 2013-01-26 03:50, Elias Zamaria wrote:

I have GCC and I have used it to compile C programs. Anyway, I tried
typing dmd at the terminal and it tells me I have version 2.061. I
have no idea how that got there or if the whole thing got installed.


Hehe, try a Hello World application:

// main.d

import std.stdio;

void main ()
{
writeln(Hello World);
}

Compile with:

$ dmd main.d

Run with:

$ ./main

--
/Jacob Carlborg


Re: Mac OS installer

2013-01-26 Thread Elias Zamaria
I have been able to compile and run D programs for quite some 
time. I just thought I was using the 2.060 version of the 
compiler you gave me, until I checked what version I was actually 
using. My guess is that the 2.061 installer may have installed 
the new DMD, despite the error message.


Re: Mac OS installer

2013-01-25 Thread Jacob Carlborg

On 2013-01-25 04:35, Elias Zamaria wrote:

I found my OS X DVD and tried to install Xcode, but I am getting a
similar The installation failed error. If I manage to install it, I
will post here about whether I still have problems installing DMD.


I'm sorry your having so much trouble with this. You can always look at 
the Console to get more information. /Applications/Utilities/Console.app.


You technically should not need Xcode just for installing DMD. You 
should not need Xcode to run DMD either but you _do_ need GCC to run DMD.


--
/Jacob Carlborg


Re: Mac OS installer

2013-01-25 Thread Elias Zamaria
I have GCC and I have used it to compile C programs. Anyway, I 
tried typing dmd at the terminal and it tells me I have version 
2.061. I have no idea how that got there or if the whole thing 
got installed.


Re: Mac OS installer

2013-01-24 Thread Elias Zamaria
I reported the issue with the installer text. It can be seen at 
http://d.puremagic.com/issues/show_bug.cgi?id=9392


Re: Mac OS installer

2013-01-24 Thread Elias Zamaria
I found my OS X DVD and tried to install Xcode, but I am getting 
a similar The installation failed error. If I manage to install 
it, I will post here about whether I still have problems 
installing DMD.


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/nxawipcegdmbkqkal...@forum.dlang.org




Re: Mac OS installer

2013-01-21 Thread Elias Zamaria
If Xcode is required to run DMD, then how did you make that 
custom installer for 2.060 that I installed without Xcode? If I 
already have GCC installed, why doesn't the installer work? What 
does that have to do with Xcode?


Re: Mac OS installer

2013-01-21 Thread Jacob Carlborg

On 2013-01-21 09:41, Elias Zamaria wrote:

If Xcode is required to run DMD, then how did you make that custom
installer for 2.060 that I installed without Xcode? If I already have
GCC installed, why doesn't the installer work? What does that have to do
with Xcode?


Xcode is not needed to run the installer. Nothing special is needed to 
run the installer. But GCC is needed to compile using DMD. The installer 
doesn't work because it's built for Mac OS X 10.7 and later. I've create 
a pull request to make the installer work on earlier versions as well. 
It has been merge. But they need to rebuild the installer and upload a 
new one. I don't know if this has been made yet.


--
/Jacob Carlborg


Re: Mac OS installer

2013-01-21 Thread Elias Zamaria
I have another question: if the installer is made for 10.7 and 
later, then why does it say This package is intended for Mac OS 
X Leopard (10.5) only.? Maybe that is a mistake but a lot of 
people, including me before I asked about this issue, are 
probably confused seeing the message saying that their OS is too 
new when in fact it is too old.


Re: Mac OS installer

2013-01-21 Thread Jacob Carlborg

On 2013-01-22 04:19, Elias Zamaria wrote:

I have another question: if the installer is made for 10.7 and later,
then why does it say This package is intended for Mac OS X Leopard
(10.5) only.? Maybe that is a mistake but a lot of people, including me
before I asked about this issue, are probably confused seeing the
message saying that their OS is too new when in fact it is too old.


That text hasn't been update for a very long time. It's nothing to worry 
about. You know, your free to report these issues to bugzilla:


http://d.puremagic.com/issues/

--
/Jacob Carlborg


Re: Mac OS installer

2013-01-20 Thread Elias Zamaria
I have been somewhat reluctant to create an Apple developer 
account just to be able to download and install the version of 
Xcode I need to be able to install DMD. I will try it when I feel 
like spending the time. Out of curiosity, why is Xcode required 
to install DMD?


Re: Mac OS installer

2013-01-20 Thread Jacob Carlborg

On 2013-01-21 06:42, Elias Zamaria wrote:

I have been somewhat reluctant to create an Apple developer account just
to be able to download and install the version of Xcode I need to be
able to install DMD. I will try it when I feel like spending the time.
Out of curiosity, why is Xcode required to install DMD?


It's required to run DMD. DMD uses GCC as the linker. Also the C 
standard library is part of the D standard library.


It's enough with a free account.

You can try this if you don't want to create an account:

https://github.com/kennethreitz/osx-gcc-installer

--
/Jacob Carlborg


Re: Mac OS installer

2013-01-14 Thread Jacob Carlborg

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


Re: Mac OS installer

2013-01-14 Thread Russel Winder
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.win...@ekiga.net
41 Buckmaster Roadm: +44 7770 465 077   xmpp: rus...@winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder


signature.asc
Description: This is a digitally signed message part


Re: Mac OS installer

2013-01-14 Thread Jacob Carlborg

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


Re: Mac OS installer

2013-01-14 Thread Russel Winder
On Mon, 2013-01-14 at 09:51 +0100, Jacob Carlborg wrote:
[…]
 
 Because it's not available for Snow Leopard.
 

That'll be why then.

I spent some money getting a Lion flash drive, we'll see if I can
upgrade to it. If not …

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


signature.asc
Description: This is a digitally signed message part


Re: Mac OS installer

2013-01-13 Thread Elias Zamaria
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/nxawipcegdmbkqkal...@forum.dlang.org




Re: Mac OS installer

2013-01-13 Thread Elias Zamaria
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/nxawipcegdmbkqkal...@forum.dlang.org




Re: Mac OS installer

2013-01-13 Thread Elias Zamaria
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/yrcyfaalimocuovsv...@forum.dlang.org 
or

http://forum.dlang.org/thread/bug-868...@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




Re: Mac OS installer

2013-01-13 Thread Russel Winder
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.win...@ekiga.net
41 Buckmaster Roadm: +44 7770 465 077   xmpp: rus...@winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder


signature.asc
Description: This is a digitally signed message part


Re: Mac OS installer

2013-01-13 Thread Jacob Carlborg

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


Re: Mac OS installer

2013-01-13 Thread Jacob Carlborg

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


Re: Mac OS installer

2013-01-08 Thread Jacob Carlborg

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/yrcyfaalimocuovsv...@forum.dlang.org or
http://forum.dlang.org/thread/bug-868...@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

--
/Jacob Carlborg


Re: Mac OS installer

2013-01-08 Thread Mengu

On Monday, 22 October 2012 at 13:45:10 UTC, Adam D. Ruppe wrote:
I was recently involved in a stack overflow question about mac 
os:


http://stackoverflow.com/questions/12832241/cant-install-dmd-2-060-on-os-x-10-6-8/12897850

I gave my usual answer of just use the zip which solved the 
problem there, but perhaps there's something we can do to 
improve the installer so people who do use it can have an 
easier time.


I don't know anything about the Mac though, so there's nothing 
more I can do except punt it to someone else... so here I am.


there is a homebrew recipe.

brew install dmd


Re: Mac OS installer

2013-01-08 Thread Russel Winder
On Tue, 2013-01-08 at 13:33 +0100, Mengu wrote:
[…]
 there is a homebrew recipe.
 
 brew install dmd

Has anyone got a port into MacPorts?

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


signature.asc
Description: This is a digitally signed message part


Re: Mac OS installer

2013-01-08 Thread Jacob Carlborg

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/yrcyfaalimocuovsv...@forum.dlang.org or
http://forum.dlang.org/thread/bug-868...@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


Re: Mac OS installer

2013-01-07 Thread Joshua Niehus

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/nxawipcegdmbkqkal...@forum.dlang.org



Re: Mac OS installer

2013-01-07 Thread Jacob Carlborg

On 2013-01-08 05:57, 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


He's running Mac OS X 10.6 with a pretty old version of Xcode, i.e. 
before App Store. This version of Xcode installs the command line tools 
when Xcode itself is installed.


--
/Jacob Carlborg


Re: Mac OS installer

2012-10-23 Thread Jacob Carlborg

On 2012-10-22 15:45, Adam D. Ruppe wrote:

I was recently involved in a stack overflow question about mac os:

http://stackoverflow.com/questions/12832241/cant-install-dmd-2-060-on-os-x-10-6-8/12897850


I gave my usual answer of just use the zip which solved the problem
there, but perhaps there's something we can do to improve the installer
so people who do use it can have an easier time.

I don't know anything about the Mac though, so there's nothing more I
can do except punt it to someone else... so here I am.


Could you try this installer (or relay the information to stackoverflow):

https://dl.dropbox.com/u/18386187/dmd-2.060-osx-installer.zip

I built it on Mac OS X 10.6.3.

--
/Jacob Carlborg


Re: Mac OS installer

2012-10-23 Thread Adam D. Ruppe

On Tuesday, 23 October 2012 at 09:15:37 UTC, Jacob Carlborg wrote:
Could you try this installer (or relay the information to 
stackoverflow):


Thanks! I don't have a mac so can't test myself, but I forwarded 
it to the SO person.


Re: Mac OS installer

2012-10-22 Thread Jacob Carlborg

On 2012-10-22 15:45, Adam D. Ruppe wrote:

I was recently involved in a stack overflow question about mac os:

http://stackoverflow.com/questions/12832241/cant-install-dmd-2-060-on-os-x-10-6-8/12897850


I gave my usual answer of just use the zip which solved the problem
there, but perhaps there's something we can do to improve the installer
so people who do use it can have an easier time.

I don't know anything about the Mac though, so there's nothing more I
can do except punt it to someone else... so here I am.


http://d.puremagic.com/issues/show_bug.cgi?id=8682

--
/Jacob Carlborg