RejectedSoftware Forums

Sign up

Failed to invoke the compiler dmd

Why am I getting this annoying error??

Here is a very simple session with DUB:

dejan@BMLL-pc:~/work/desktopfile$ dmd --version
DMD64 D Compiler v2.067.1
Copyright (c) 1999-2014 by Digital Mars written by Walter Bright
dejan@BMLL-pc:~/work/desktopfile$ dub build
Error executing command build:
Failed to invoke the compiler dmd to determine the build platform: spawnProcess(): Failed to execute program: Permission denied

dejan@BMLL-pc:~/work/desktopfile$ dub list
Packages present in the system and known to dub:
  desktopfile ~master: /home/dejan/work/desktopfile/
  desktopfile:desktoputil ~master: /home/dejan/work/desktopfile/
  desktopfile:desktoptest ~master: /home/dejan/work/desktopfile/

Looks like dub fetch works too:

dejan@BMLL-pc:~/work/desktopfile$ dub fetch desktopfile
Fetching desktopfile 0.2.2...
Placing desktopfile 0.2.2 to /home/dejan/.dub/packages/...
Please note that you need to use `dub run <pkgname>` or add it to dependencies of your package to actually use/run it. dub does not do actual installation of packages outside of its own ecosystem.

It is a Ubuntu 15 box, 64bit. DMD works fine - I easily compile stuff manually.

Re: Failed to invoke the compiler dmd

Am 08.05.2015 um 15:32 schrieb Dejan Lekic:

Why am I getting this annoying error??

Here is a very simple session with DUB:

dejan@BMLL-pc:~/work/desktopfile$ dmd --version
DMD64 D Compiler v2.067.1
Copyright (c) 1999-2014 by Digital Mars written by Walter Bright
dejan@BMLL-pc:~/work/desktopfile$ dub build
Error executing command build:
Failed to invoke the compiler dmd to determine the build platform: spawnProcess(): Failed to execute program: Permission denied
(...)

I don't have an explanation for this ATM. Can you try what happens with
a minimal program that just calls spawnProcess("dmd")?