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.