This page describes how to build the Trafodion source code.

You need to Setup Build Environment before trying to build the Trafodion source code.

Download Source

You should already have downloaded the source code when setting up the build environment.


Please refer to Making Changes on the Develop page.

tar file

The source code for Apache Trafodion can be downloaded from Apache Trafodion Incubator Release as a tar file.

  • Download the source tar file to your <trafodion download directory>.
  • Check the tar file validity by checking signatures, please refer to Verify Signatures. The Trafodion releases have been signed using The GNU Privacy Guard.

Unpack the tar file

 cd <trafodion download directory>
 tar -xzf <tar file>

Set Up Environmental Variables

Start a new ssh session. Use the following commands to set up the Trafodion environmental variables.

cd <Trafodion source directory>
export TOOLSDIR=<tools installation directory>
source ./
  • <Trafodion source directory>: Source tree base for Trafodion.
  • <tools installation directory>: where Trafodion required tools are located. The following example assumes that you installed all the required tools in a single location. If you installed or used pre-installed tools in different directories, then you need to export the location of each tool as described in Build Tools Manual Installation prior to sourcing in

Build Commands

Build a debug version of Trafodion using one of the following options.

Command What It Builds
make all Trafodion, DCS, and REST.
make package Trafodion, DCS, REST, and Client Drivers.
make package-all Trafodion, DCS, REST, Client Drivers, and tests for all components.

If the build fails, you might want to rerun the make step. Trafodion downloads many dependencies and sometimes one of the download operations fail. Rerunning the build generally works.

Verify Build

Use sqvers -u to verify the build.

$ sqvers -u
SQ_MBTYPE=64d (64-debug)
NO patches
Most common Apache_Trafodion Release 1.3.0 (Build debug [centos], branch -, date 06Nov15)
UTT count is 1
[6]     Release 1.3.0 (Build debug [centos], branch -, date 06Nov15)

The output from the sqvers -u commands should show several jar files. The number of files differs based on the version of Trafodion you downloaded.

Back to top

Disclaimer: Apache Trafodion is an effort undergoing incubation at the Apache Software Foundation (ASF), sponsored by the Apache Incubator PMC. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Apache, Apache Maven, Apache Maven Fluido Skin, the Apache feather logo, the Apache Maven project logo and the Apache Incubator project logo are trademarks of The Apache Software Foundation.