www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - zsh: command not found: rdmd

reply leikang <1013626230 qq.com> writes:
Enter dmd lk01.d in vscode, the terminal displays zsh: command 
not found: dmd, an error is reported, I don't know what the 
problem is, can it only be run in /Users/mac1094/dmd2/osx/bin?
Sep 20 2021
next sibling parent reply russhy <russhy gmail.com> writes:
On Monday, 20 September 2021 at 11:04:42 UTC, leikang wrote:
 Enter dmd lk01.d in vscode, the terminal displays zsh: command 
 not found: dmd, an error is reported, I don't know what the 
 problem is, can it only be run in /Users/mac1094/dmd2/osx/bin?
How have you installed dmd?
Sep 20 2021
parent reply leikang <1013626230 qq.com> writes:
On Monday, 20 September 2021 at 21:51:32 UTC, russhy wrote:
 On Monday, 20 September 2021 at 11:04:42 UTC, leikang wrote:
 Enter dmd lk01.d in vscode, the terminal displays zsh: command 
 not found: dmd, an error is reported, I don't know what the 
 problem is, can it only be run in /Users/mac1094/dmd2/osx/bin?
How have you installed dmd?
I downloaded and installed it on my Mac, installed it under the local disk, and then entered the /Users/mac1094/dmd2/osx/bin directory to enter dmd xxx.d to run
Sep 20 2021
parent Tejas <notrealemail gmail.com> writes:
On Tuesday, 21 September 2021 at 01:02:30 UTC, leikang wrote:
 On Monday, 20 September 2021 at 21:51:32 UTC, russhy wrote:
 On Monday, 20 September 2021 at 11:04:42 UTC, leikang wrote:
 Enter dmd lk01.d in vscode, the terminal displays zsh: 
 command not found: dmd, an error is reported, I don't know 
 what the problem is, can it only be run in 
 /Users/mac1094/dmd2/osx/bin?
How have you installed dmd?
I downloaded and installed it on my Mac, installed it under the local disk, and then entered the /Users/mac1094/dmd2/osx/bin directory to enter dmd xxx.d to run
Does it work when you go to that `/Users/mac1094/dmd2/osx/bin` location or write `/Users/mac1094/dmd2/osx/bin 1k01.d`? Then you just have to add the location of dmd to your path How to do that? Idk, I use windows/linux
Sep 20 2021
prev sibling parent tastyminerals <tastyminerals gmail.com> writes:
On Monday, 20 September 2021 at 11:04:42 UTC, leikang wrote:
 Enter dmd lk01.d in vscode, the terminal displays zsh: command 
 not found: dmd, an error is reported, I don't know what the 
 problem is, can it only be run in /Users/mac1094/dmd2/osx/bin?
Keep in mind that if you have M1 machine, you cannot use dmd. Download and use `ldc2` compiler for arm64 here. https://github.com/ldc-developers/ldc/releases/download/v1.27.1/ldc2-1.27.1-osx-arm64.tar.xz
Sep 20 2021