Issue: Installing D

Chris Miller lordSaurontheGreat at gmail.com
Tue Feb 19 14:00:04 PST 2008


torhu Wrote:

> Chris Miller wrote:
> > I know I have something that almost works, since I got it to the point where I have a base install (Phobos, dmd, and nothing else) which can compile a blank D program (void main(){}) without any problems, and UAC doesn't try and badger me.
> > 
> > It's getting Derelect, Tango*, and DDBI as well that's proving to be the hard part.  DWT would be nice, too, but I could do without it if I have to.  Rebuild is also sort of required, since I can't build all this stuff by hand all the time.  That's just raw insanity if you ask me!
> > 
> > * Or Tangobos.  I just need the features from the listed libraries, I don't much care how I get 'em.  I just want to write code now...  I've been beating compilers around for a long time trying to get them to work.  If you have a working setup, man, consider yourself lucky!  You don't know how hard it is to see a beautiful language and not be able to take it for a spin!
> 
> 
> Setting up a D environment and be able to build apps can be trickier 
> than with other languagues.  Mostly because there are two competing std 
> libraries, and because the commonly used build tools are so different 
> from what people are used to.

90% of the ambiguity I perceive is from the Phobos/Tango problem.

> One important basic is to figure out how to configure dmd correctly, 
> mainly the LIB and DFLAGS settings in sc.ini.  I'll just post the link 
> here, to further insult your intelligence. ;)
> http://www.digitalmars.com/d/1.0/dcompiler.html#sc_ini

Actually that helps a great deal.

> Some random hints:
> 
> Don't try to build tango with dsss, IIRC it doesn't work.  Use the batch 
> files in tango/lib, you just need to run them in alphabetical order. 
> Then you only need to set up your import (include) and lib paths in 
> sc.ini to point to tango instead of phobos.

Batch files?  Gosh that sounds not far removed from the time-honored tradition of caveman debugging.  In the Engineer's famous last words, there has to be a better way.  I'll try the batch files if nothing else works.

> Don't try to use tangobos until you've gotten some general experience 
> with building D apps and libs.  It can complicate your build process a lot.

Yeah, I read something about differences between Object.d and madness like that.

If the two library's cores are separate, it seems to me that one could mitigate their differences and stick them both into the default download.  It's very detrimental to continue to have these two libraries conflicting so violently with each other.

> And if you post the error messages here or in #D on irc, there's a good 
> chance someone will spot the problem right away. Been there, done that. :)

Ah, yes, IRC.  The one thing I always have with me, but never remember to use.

I'm so old-school.  I have yet to really embrace instant messaging, cell phones, text messaging, and forum boards.  I'm still stuck in email and Usenet.


More information about the Digitalmars-d-learn mailing list