Open
Description
Don Allen reported this on 2021-10-11T16:37:59Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=22380
Description
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