- Installed gcc
- Downloaded the latest version for D1 (1.060 at the time of this post) from http://ftp.digitalmars.com/dmd.1.060.zip
- Extracted the directory to ~/Downloads/
- Created directory /opt/dmd with permissions 755 and owner root/root
- Created directory /opt/dmd/bin with permissions 755 and owner root/root
- Copied /home/mike/Downloads/dmd/linux/bin/dmd.conf to /opt/dmd/bin
- Copied dmd, dumpobj, obj2asm, and rdmd from /home/mike/Downloads/dmd/linux/bin/ to /opt/dmd/bin
- Changed the permissions of dmd, dumpobj, obj2asm, and rdmd in /opt/dmd/bin to 555
- Made sure dmd, dumpobj, obj2asm, and rdmd in /opt/dmd/bin had owner root/root
- Created directory /opt/dmd/lib with permissions 755 and owner root/root
- Copied /home/mike/Downloads/dmd/linux/lib/libphobos.a to /opt/dmd/lib/
- Added /opt/dmd/bin to the path in /etc/environment
- Copied /home/mike/dmd/src to /opt/dmd/src
- Changed the DFLAGS line in /opt/dmd/bin/dmd.conf to:
DFLAGS=-I/opt/dmd/src/phobos -L-L/opt/dmd/lib
- Tested it with a simple hello world program
So in summary, you just need the key things to check for are
- That the dmd can find a dmd.conf file
- That the dmd.conf file knows where to look for includes and libraries
- That libphobos is accessible as well as its source
No comments:
Post a Comment