Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

G-WAN uses gdc to compile D scripts.
I'm having problems with gdc for D2 and would like to use dmd instead (They're both D compilers).

So what I've done is used alias gdc="dmd" I can now compile D2 code by calling gdc hello.d but G-WAN still tells me To use D (*.d) scripts, install 'gdc'

Can I trick it into using dmd without having access to the source code?

share|improve this question
up vote 2 down vote accepted

You could try to create a script in your $PATH with the name gdc and call dmd in it.

For example: $HOME/bin/gdc


# Enter the dmd compile command below
# $@ are your command line arguments
dmd $@

Make it executable: chmod +x $HOME/bin/gdc

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.