Linux installation, even worse: search path for libphobos.a

Norbert Nemec Norbert at Nemec-online.de
Sun Apr 23 08:15:54 PDT 2006


Anders F Björklund wrote:
> 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

Nice, but this info should be found on the very official site at
digitalmars: that's the first place a new user would search for it, and
it should cover the common question of non-root installation.

> 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 ?

There is indeed no universial agreement for binaries, but there is a
canonical place for configuration files:
	/etc/dmd.conf
and
	$HOME/.dmd.conf

The second one should definitely be searched first by the compiler, and
the template of this file (dmd.zip//dmd/bin/dmd.conf) should contain not
only the path to the phobos sources but also that to libphobos.a




More information about the Digitalmars-d mailing list