Monday, June 7, 2010

Installing DMD2 alongside DMD1 on Unbuntu Netbook Edition 10.04

Here's my attempt to install the DMD2 compiler alongside my existing DMD1 installation without screwing anything up.

  1. Downloaded the latest version for D2 (2.046 at the time of this post) from http://ftp.digitalmars.com/dmd.2.046.zip
  2. Extracted the directory to ~/Downloads/
  3. Created directory /opt/dmd2 with permissions 755 and owner root/root
  4. Created directory /opt/dmd2/bin with permissions 755 and owner root/root
  5. Copied /home/mike/Downloads/dmd2/linux/bin/dmd.conf to /opt/dmd2/bin
  6. Copied dmd, dumpobj, obj2asm, and rdmd from /home/mike/Downloads/dmd2/linux/bin/ to /opt/dmd2/bin
  7. Changed the permissions of dmd, dumpobj, obj2asm, and rdmd in /opt/dmd2/bin to 555
  8. Made sure dmd, dumpobj, obj2asm, and rdmd in /opt/dmd2/bin had owner root/root
  9. Created directory /opt/dmd2/lib with permissions 755 and owner root/root
  10. Copied /home/mike/Downloads/dmd/linux/lib/libphobos2.a to /opt/dmd/lib/
  11. Copied /home/mike/dmd2/src to /opt/dmd2/src
  12. Changed the DFLAGS line in /opt/dmd/bin/dmd.conf to:
    DFLAGS=-I/opt/dmd2/src/phobos -I/opt/dmd2/src/druntime/import -L-L/opt/dmd2/lib
Later I'll try and see if I can set it up with DSSS

Update: It looks like DSSS is dead at version 0.78 and no longer compatible with the latest dmd2.

No comments:

Post a Comment