next up previous contents
Next: Compiling under Windows Up: Compiling the Sources Previous: Compiling the Sources   Contents

Compiling under Linux/Mac OS

Note: If you are using Mac OS you will also need to install - if not already present - the following required (additional) tools.

  1. Download the archive gcx_2-1_src.tar.gz (you might also download the .zip archive gcx_2-1_src.zip) from http://sourceforge.net/project/showfiles.php?group_id=258398.
  2. Extract the archive by typing
    > tar -xzf gcx_2-1_src.tar.gz
    in a shell. This will create the following directory structure.

    gcx_2-1_src      The root folder.
        ./bin      This folder is empty and will - after compilation - contain the binary.
        ./examples      This folder contains sample queries for testing purpose.
            ./sgml      This folder contains sgml sample queries.
            ./tree      This folder contains tree sample queries.
            ./xmark      This folder contains xmark sample queries.
            ./xmp      This folder contains xmp sample queries.
        ./src      This folder contains all required sources for compilation.
  3. Step into the src directory by typing
    > cd ./gcx_2-1_src/src
    in a shell.
  4. Optionally, but not necessarily, you may want to enable or disable one or more special features by uncommenting or adding FLAGS in the Makefile (Makefile.Linux). A complete list of all available compilation FLAGS will be discussed in Section Compiling with/without Special Features.
  5. Now type
    > make -f Makefile.Linux
    to compile the sources. After compilation a binary file named gcx will be created in the bin directory.
  6. You might also consider to add the bin directory to your PATH variable or creating a link to the gcx binary in /usr/bin.


next up previous contents
Next: Compiling under Windows Up: Compiling the Sources Previous: Compiling the Sources   Contents