Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact
Version 4 (modified by Jim Panic, 17 years ago)
--

Installing Tango with GDC on Unix operating systems

TODO: A paragraph of introductionary sentences, or such.

GDC Installation

These instructions apply for the SourceForge Subversion GDC repository. In case you already have GDC installed in an appropriate version, you can skip this section.

Getting the source

Just follow the instructions found in SourceForge.

Getting GCC

Get the GCC sources from http://gcc.gnu.org/. You need at least the gcc-core-x.x.x file, or the gcc-x.x.x file if you want the full GCC collection. For this document, it is assumed that you have gcc-core-4.0.3.tar.bz2 and gcc-g++-4.0.3.tar.bz2.

Note: Currently only tested up to GCC 4.0.3. It has been rumored not to work with the 4.1 series.

Choosing a branch

If you want the latest D features, find the latest branch in the branches directory of your GDC sources. If you want a more stable version, use the trunk directory. For the rest of this document, the chosen directory will be referred as GDCDIR.

Note: You need the latest "gdc-0.20-dev" branch (DMD 170+) for it to work with Tango.

Compiling GDC

This will be shown keeping separate directories for the sources and the compiled binaries.

1. Extract the GCC sources to an empty directory

$ mkdir gdc-sf
$ cd gdc-sf
$ ls ../gcc-src/gcc-4.0.3/gcc-core-4.0.3.tar.bz2
$ ls ../gcc-src/gcc-4.0.3/gcc-g++-4.0.3.tar.bz2

2. Copy the GDC sources to the GCC directory, and run the setup script.

$ cd gcc-4.0.3/gcc
$ cp $GDCDIR/d .
$ cd ..
$ gcc/d/setup-gcc.sh

3. Create a new empty directory for building.

$ cd ..
$ mkdir build
$ cd build

4. Configure, make, make install; Don't forget to enable all languages you want to use.

$ ../gcc-4.0.3/configure --enable-languages=c,c++,d
$ make
$ sudo make install

5. Test

$ gdc --version

Tango Installation for use with GDC

TODO: GDC Installation Guide (See: #95)