Comment #0 by donaldcallen1942 — 2021-10-11T16:37:59Z
The documentation for installation of DMD on FreeBSD on the page https://dlang.org/dmd-freebsd.html is inaccurate in multiple ways.
1. Put dmd2/freebsd/bin on your PATH. There is no freebsd/bin directory:
dca@giovanni:/home/dca/Software/dmd2/freebsd$ ls
bin32 bin64 lib64
In my case, the bin64 directory needs to be in PATH.
2. The page also instruct you to
Copy the standard library and runtime sources to /usr/include/d/dmd:
sudo mkdir -p /usr/include/d/dmd
sudo cp dmd2/{phobos/std,phobos/etc,druntime/import} /usr/include/d/dmd
Those directories are in dmd2/src, not dmd2. Also the cp command requires the -r option, since directories are being copied. The correct command is
sudo cp -r dmd2/src/{phobos/std,phobos/etc,druntime/import} /usr/include/d/dmd
Comment #1 by robert.schadek — 2024-12-13T19:18:44Z