dmd: failed to launch executable

Laeeth Isharc via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 19 09:44:50 PDT 2015


On Saturday, 19 September 2015 at 15:46:32 UTC, Rinzler wrote:
> On Saturday, 19 September 2015 at 15:32:33 UTC, Laeeth Isharc 
> wrote:
>> On Saturday, 19 September 2015 at 10:21:30 UTC, Rinzler wrote:
>>> On Saturday, 19 September 2015 at 10:17:21 UTC, Jacob 
>>> Carlborg wrote:
>>>> On 2015-09-19 12:05, Rinzler wrote:
>>>>>> what does "which dmd" give you?
>>>>>
>>>>> Nothing...
>>>>
>>>> And "type dmd | head -n 1"? If that gives you some kind of 
>>>> path, what does then "file <path>" print?
>>>
>>> I don't even have a tool called "type"? Should I install it 
>>> just for testing this?
>>
>> He means type ie enter the following line in the console:
>>
>> dmd | head -n 1
>
> It gives me: -bash: dmd: command not found
>
> Now, suddenly and mysteriously, if I type
>
> dmd,
>
> I get
>
> -bash: dmd: command not found .
>
> Really strange...
"
I had installed `dmd` using `brew` some time ago, and now I was 
trying to use `dmd` again, but I keep getting the following error:

`dmd: failed to launch executable at 
/Library/Compilers/dmd2/osx/bin/dmd`.

Even after doing `brew uninstall dmd` and `brew uninstall dub`, I 
keep getting the same error.

I had already had some problems of linking when I first tried to 
use it, and I think I had tried to install and uninstall it some 
times.

Now, if I go under `/Library/Compilers` I have no folder. In my 
`.bash_profile` file, I have no path related to `dmd` that is 
being exported.

I have also removed the `dmd` executable and the `dmd.conf` file 
under `/usr/bin`, but nothing has changed.

How can I remove previous links to 
`/Library/Compilers/dmd2/osx/bin/dmd`?
"

After you uninstalled it, how did you reinstall it again ?



More information about the Digitalmars-d mailing list