1 ******************************************************************************
2 * Copyright (c) 2000-2015 Ericsson Telecom AB
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 ******************************************************************************
9 Build and install Titan on Linux
11 1.Install required libraries:
12 (examples are given for Ubuntu 12.04/14.04; for other Linuxes, pls. use the relevant library installation method)
14 sudo apt-get install g++ expect libssl-dev libxml2-dev libncurses5-dev flex bison
15 xutils-dev is needed by makedepend:
16 sudo apt-get install xutils-dev
17 The following packages may be needed for titan_eclipse/automatic_build:
18 sudo apt-get install ant xsltproc
20 2.Clone the titan directory from git into /home/<user_id>/titan.core
22 git clone https://github.com/eclipse/titan.core titan.core
24 3. Configure the build
27 check that MakefileFOSS.cfg is present and has the following content:
30 # Configurations for the Free Open Source Software version
35 Several build options are possible; for details on options , please read through the Makefile.cfg.
36 Options can be overridden by the content of a file named Makefile.personal which can be used to
37 adapt to local installation directories, change config options etc.
38 Below, a small number of typical scenarios are presented.
42 The JNI interface is used by the Eclipse Titan Executor or by the Java Executor API.
43 If you don't need them , Titan can be compiled without JNI.
45 Create ~/titan.core/Makefile.personal to override settings in Makefile.cfg with the following content:
46 (replace paths with values relevant to your installation)
48 TTCN3_DIR := /home/<user id>/titan.core/Install
50 #JDKDIR := /usr/lib/jvm/java-7-openjdk-amd64
59 install JDK into /home/<user id>/jdk
61 Create ~/titan.core/Makefile.personal to override settings in Makefile.cfg with the following content:
62 (replace paths with values relevant to your installation)
64 TTCN3_DIR := /home/<user id>/titan.core/Install
66 JDKDIR := /usr/lib/jvm/java-7-openjdk-amd64
77 5. Set environment variables
79 setenv TTCN3_DIR /home/<user id>/titan.core/Install
80 setenv PATH /home/<userid>/titan.core/Install/bin/:${PATH}
81 setenv LD_LIBRARY_PATH /home/<userid>/titan.core/Install/lib:${LD_LIBRARY_PATH}
87 export TTCN3_DIR=/home/<user id>/titan.core/Install
88 export PATH=/home/<userid>/titan.core/Install/bin/:${PATH}
89 export LD_LIBRARY_PATH=/home/<userid>/titan.core/Install/lib:${LD_LIBRARY_PATH}
97 This will install Titan into /home/<user id>/titan.core/Install
100 7. Optionally, run function/regression tests
102 cd /home/<user id>/titan.core/function_test
104 in the following Makefiles
111 edit the value of XMLDIR to match your installation values
117 ( or make |& tee outputfile if you want to save the output for verification)
119 cd /home/<user id>/titan.core/regression_test
122 ( or make run |& tee outputfile if you want to save the output for verification)
124 These tests might run for half an hour (regr.tests) to two hours (func.tests)
126 8. Optionally, copy Titan into its final directory.
127 From here on, you can continue with the Titan installation guide, see /Install/docs, to set/change environment variables etc.