www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Simplify linux installation

reply Norbert Nemec <Norbert.Nemec gmx.de> writes:
The current recommended way of installing dmd on linux only works if the
user has root privileges. Trying to figure out how to install it
alternatively really is somewhat tricky.

It would be far better if the distribution were self-contained in such a
waythat copying files to other directories is not necessary. One simple way
to do so is:

* rename dmd/bin/dmd to dmd/bin/dmd.bin

* place an executable shellscript dmd/bin/dmd there instead
-------------------------------
#!/bin/sh
BINDIR=`dirname $0`
TOPDIR=`dirname $BINDIR`
export DFLAGS="-I${TOPDIR}/src/phobos -L-L${TOPDIR}/lib"
exec ${BINDIR}/dmd.bin "$ "
-------------------------------

That's it.

Now, the ultimate simplicity would come if there were a linux version of dmd
packed as .tar.gz with unnecessary windows files removed and the executable
flags correctly set. Such a file is 1.65 meg instead of 2.78 meg and you
don't have to do anything when installing it.
Jul 07 2004
parent Thomas Kuehne <eisvogel users.sourceforge.net> writes:
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8Bit

 Now, the ultimate simplicity would come if there were a linux version of
 dmd packed as .tar.gz with unnecessary windows files removed and the
 executable flags correctly set. Such a file is 1.65 meg instead of 2.78
 meg and you don't have to do anything when installing it.

Yep, this would be realy sweet!
Jul 07 2004