digitalmars.D - dmd: failed to launch executable
- Rinzler (16/16) Sep 18 2015 I had installed `dmd` using `brew` some time ago, and now I was
- John Colvin (2/19) Sep 18 2015 what does "which dmd" give you?
- Rinzler (1/2) Sep 19 2015 Nothing...
- Jacob Carlborg (5/7) Sep 19 2015 And "type dmd | head -n 1"? If that gives you some kind of path, what
- Rinzler (4/10) Sep 19 2015 I don't even have a tool called "type"? Should I install it just
- Laeeth Isharc (3/14) Sep 19 2015 He means type ie enter the following line in the console:
- Rinzler (8/23) Sep 19 2015 It gives me: -bash: dmd: command not found
- John Colvin (11/36) Sep 19 2015 Quick point about paths and so on: if you don't understand what's
- Rinzler (5/15) Sep 19 2015 Thanks for the advice.
- John Colvin (7/23) Sep 19 2015 Compilers and tools: If possible let homebrew manage everything.
- Rinzler (2/27) Sep 19 2015 Ok, thanks, I will try to follow those advices.
- Laeeth Isharc (20/45) Sep 19 2015 "
- Rinzler (4/56) Sep 19 2015 I don't remember anymore exactly, but I think that I tried both
- Jacob Carlborg (7/9) Sep 19 2015 No, "type" is a command, a shell builtin, that's why it was inside the
- Jacob Carlborg (4/6) Sep 19 2015 What? "type" is a shell builtin.
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`?
Sep 18 2015
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?
Sep 18 2015
On 2015-09-19 12:05, Rinzler wrote:And "type dmd | head -n 1"? If that gives you some kind of path, what does then "file <path>" print? -- /Jacob Carlborgwhat does "which dmd" give you?Nothing...
Sep 19 2015
On Saturday, 19 September 2015 at 10:17:21 UTC, Jacob Carlborg wrote:On 2015-09-19 12:05, Rinzler wrote:I don't even have a tool called "type"? Should I install it just for testing this?And "type dmd | head -n 1"? If that gives you some kind of path, what does then "file <path>" print?what does "which dmd" give you?Nothing...
Sep 19 2015
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:He means type ie enter the following line in the console: dmd | head -n 1On 2015-09-19 12:05, Rinzler wrote:I don't even have a tool called "type"? Should I install it just for testing this?And "type dmd | head -n 1"? If that gives you some kind of path, what does then "file <path>" print?what does "which dmd" give you?Nothing...
Sep 19 2015
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: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...On Saturday, 19 September 2015 at 10:17:21 UTC, Jacob Carlborg wrote:He means type ie enter the following line in the console: dmd | head -n 1On 2015-09-19 12:05, Rinzler wrote:I don't even have a tool called "type"? Should I install it just for testing this?And "type dmd | head -n 1"? If that gives you some kind of path, what does then "file <path>" print?what does "which dmd" give you?Nothing...
Sep 19 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: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.On Saturday, 19 September 2015 at 10:21:30 UTC, Rinzler wrote: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...On Saturday, 19 September 2015 at 10:17:21 UTC, Jacob Carlborg wrote:He means type ie enter the following line in the console: dmd | head -n 1On 2015-09-19 12:05, Rinzler wrote:I don't even have a tool called "type"? Should I install it just for testing this?And "type dmd | head -n 1"? If that gives you some kind of path, what does then "file <path>" print?what does "which dmd" give you?Nothing...
Sep 19 2015
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?
Sep 19 2015
On Saturday, 19 September 2015 at 16:44:38 UTC, Rinzler wrote:Compilers and tools: If possible let homebrew manage everything. If not feasible, use a separate folder for manually installed tools, don't let them get confused with installations from installers, package managers or system tools. Libraries: let dub handle them, if possible. If not possible, see above.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?
Sep 19 2015
On Saturday, 19 September 2015 at 17:44:22 UTC, John Colvin wrote:On Saturday, 19 September 2015 at 16:44:38 UTC, Rinzler wrote:Ok, thanks, I will try to follow those advices.Compilers and tools: If possible let homebrew manage everything. If not feasible, use a separate folder for manually installed tools, don't let them get confused with installations from installers, package managers or system tools. Libraries: let dub handle them, if possible. If not possible, see above.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?
Sep 19 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:" 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 ?On Saturday, 19 September 2015 at 10:21:30 UTC, Rinzler wrote: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...On Saturday, 19 September 2015 at 10:17:21 UTC, Jacob Carlborg wrote:He means type ie enter the following line in the console: dmd | head -n 1On 2015-09-19 12:05, Rinzler wrote:I don't even have a tool called "type"? Should I install it just for testing this?And "type dmd | head -n 1"? If that gives you some kind of path, what does then "file <path>" print?what does "which dmd" give you?Nothing...
Sep 19 2015
On Saturday, 19 September 2015 at 16:44:51 UTC, Laeeth Isharc wrote:On Saturday, 19 September 2015 at 15:46:32 UTC, Rinzler wrote:I don't remember anymore exactly, but I think that I tried both with the .dmg package downloaded from this website and with brew.On Saturday, 19 September 2015 at 15:32:33 UTC, Laeeth Isharc 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`? " After you uninstalled it, how did you reinstall it again ?On Saturday, 19 September 2015 at 10:21:30 UTC, Rinzler wrote: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...On Saturday, 19 September 2015 at 10:17:21 UTC, Jacob Carlborg wrote:He means type ie enter the following line in the console: dmd | head -n 1On 2015-09-19 12:05, Rinzler wrote:I don't even have a tool called "type"? Should I install it just for testing this?And "type dmd | head -n 1"? If that gives you some kind of path, what does then "file <path>" print?what does "which dmd" give you?Nothing...
Sep 19 2015
On 2015-09-19 17:32, Laeeth Isharc wrote:He means type ie enter the following line in the console: dmd | head -n 1No, "type" is a command, a shell builtin, that's why it was inside the quotes. $ type type type is a shell builtin -- /Jacob Carlborg
Sep 19 2015
On 2015-09-19 12:21, Rinzler wrote:I don't even have a tool called "type"? Should I install it just for testing this?What? "type" is a shell builtin. -- /Jacob Carlborg
Sep 19 2015