Linux installation, even worse: search path for libphobos.a
Anders F Björklund
afb at algonet.se
Sun Apr 23 06:14:38 PDT 2006
Norbert Nemec wrote:
>>playing with my DMD installation, I notice that the D-installation-
>>web-page gives the instruction to place dmd.conf in /etc/dmd.conf
> Just after complaining about dmd.conf, I noticed that libphobos.a is
> also expected in the fixed location: /usr/lib/libphobos.a
You can find the DMD install instructions for non-root users on Wiki4D:
http://www.prowiki.org/wiki4d/wiki.cgi?D__Tutorial/InstallingDCompiler
There's two "methods" described there, method One installs in your home
dir and requires setting PATHs, method Two in system dirs and doesn't
require setting PATH variables - but does require root/admin access...
There is also an RPM for DMD, that installs it into the /usr hierarchy
(normally you would install it into /usr/local, if doing it manually ?)
http://www.algonet.se/~afb/d/dmd.spec (soon to be updated, but 146 now)
I would "recommend" using the following locations, but as far as I know
there is no universal agreements on where these should go under Linux ?
Method DMD (compiler) Phobos (library)
One /home/yourname/dmd/bin/dmd /home/yourname/dmd/lib/libphobos.a
Two /usr/local/bin/dmd /usr/local/lib/libphobos.a
The RPM package will install the D import modules under /usr/lib/phobos,
but when doing it manually you can just link directly to dmd/src/phobos.
--anders
More information about the Digitalmars-d
mailing list