| Thread overview | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
September 18, 2015 dmd: failed to launch executable | ||||
|---|---|---|---|---|
| ||||
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`? | ||||
September 18, 2015 Re: dmd: failed to launch executable | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Rinzler | On Friday, 18 September 2015 at 15:07:52 UTC, Rinzler wrote:
> 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`?
what does "which dmd" give you?
| |||
September 19, 2015 Re: dmd: failed to launch executable | ||||
|---|---|---|---|---|
| ||||
Posted in reply to John Colvin | > what does "which dmd" give you?
Nothing...
| |||
September 19, 2015 Re: dmd: failed to launch executable | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Rinzler | 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? -- /Jacob Carlborg | |||
September 19, 2015 Re: dmd: failed to launch executable | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | 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?
| |||
September 19, 2015 Re: dmd: failed to launch executable | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Rinzler | 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
| |||
September 19, 2015 Re: dmd: failed to launch executable | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Laeeth Isharc | 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...
| |||
September 19, 2015 Re: dmd: failed to launch executable | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Rinzler | 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...
Quick point about paths and so on: if you don't understand what's going on, or have just made a change and want to be sure whether it worked, always open a new terminal session and try again. There are caches that can need emptying, environment variables that get inadvertently set etc.
I can't count the number of times I've been convinced somethings completely broken only to start a new terminal and find it all makes perfect sense again.
Totally simple, obvious advice, I know, but nonetheless always worth repeating.
| |||
September 19, 2015 Re: dmd: failed to launch executable | ||||
|---|---|---|---|---|
| ||||
Posted in reply to John Colvin | > Quick point about paths and so on: if you don't understand what's going on, or have just made a change and want to be sure whether it worked, always open a new terminal session and try again. There are caches that can need emptying, environment variables that get inadvertently set etc.
> I can't count the number of times I've been convinced somethings completely broken only to start a new terminal and find it all makes perfect sense again.
>
> Totally simple, obvious advice, I know, but nonetheless always worth repeating.
Thanks for the advice.
By the way, do you know a clean way to manage the installation and eventually the uninstallation of dmd, and all libraries related to D, etc, so that I don't have anymore these kind of problems?
| |||
September 19, 2015 Re: dmd: failed to launch executable | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Rinzler | 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 ? | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply