Bug 2473 – Linux system install instructions incorrect

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
installer
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2008-11-25T16:59:42Z
Last change time
2018-07-04T05:47:33Z
Assigned to
Walter Bright
Creator
Bill Baxter

Comments

Comment #0 by wbaxter — 2008-11-25T16:59:42Z
The instructions here: http://www.digitalmars.com/d/2.0/dmd-linux.html Say that you can do a system-wide install of dmd with the following * copy dmd.conf to /etc/ * copy dmd to /usr/local/bin * copy *.a to /usr/local/lib However, if dmd.conf is in /etc, then dmd appears to search for files relative to /etc when encountering %@P% rather than relative to the dmd binary. So the default -L-L%@P%/../lib in dmd.conf needs to be changed to -L-L%@P%/../usr/local/lib (or just -L-L/usr/local/lib). The path to the phobos src will also be wrong if dmd.conf is in /etc. The instructions should probably say for a system install to do a "cp -r dmd/src/phobos /usr/local/src" Then dmd.conf should say -I/usr/local/src/phobos Instructions-wise probably the easiest thing is just to tell users to put dmd.conf in /usr/local/bin instead of /etc. Then the paths in dmd.conf don't need to be changed (as long as you also copy src/phobos to /usr/local/src in addition to following the other instructions). If it's not acceptable to recommend putting dmd.conf in /usr/local/bin, then the next best thing would be to bundle a dmd.system.conf with correct system install paths, and instruct users to copy that one to /etc/dmd.conf instead of the regular dmd.conf, when doing a system-wide install.
Comment #1 by greensunny12 — 2018-03-27T07:43:30Z
Even though it's way too late, a start: https://github.com/dlang/dlang.org/pull/2306
Comment #2 by github-bugzilla — 2018-07-04T05:47:30Z
Commits pushed to master at https://github.com/dlang/dlang.org https://github.com/dlang/dlang.org/commit/f6c9c97877e884bc1f56f5388b275369405da2e2 Fix Issue 2473, 10941 - Linux system install instructions incorrect https://github.com/dlang/dlang.org/commit/f732ca1c2a25fdeede66e1dc1f3eb1bb3ddfe7f7 Merge pull request #2306 from wilzbach/fix-2473 Fix Issue 2473, 10941 - Linux system install instructions incorrect merged-on-behalf-of: Sebastian Wilzbach <[email protected]>