HowTo build TNCUtil on Linux
From TNC@FHH
This article describes how you can build TNCUtil (the utility package) from scratch. TNCUtil provides basic functions used by the other TNC@FHH components. The build process is described for Linux. If you want to build it on Windows, please read the Windows HowTo.
Note: If this HowTo does not answer all of your questions, see the corresponding README files contained by the downloadable source packages.
Contents |
General Preconditions
This HowTo has been tested with Debian Etch/Lenny. Some steps described may vary depending on the used distribution. Following packages must be installed:
- g++ (recommend version >= 4.1.0)
- gnu make (recommend version >= 3.81)
- xerces-c-dev (recommend version >= 2.7.0)
- libtools-dev (recommend version >= 1.5.22)
- (libltdl3-dev on Debian)
If you don't have install a precondition package you can install the package (on Debian/Etch) with:
$ aptitude update $ aptitude install build-essential libxerces27-dev libltdl3-dev
Or (on Debian/Lenny) with:
$ aptitude update $ aptitude install build-essential libxerces-c2-dev libltdl3-dev
Step 0: Download TNCUtil
Download current version (e.g. v0.4) of TNCUtil source files.
Step 1: Extract TNCUtil
Extract the TNCUtil tar-archive in the current directory. You can extract the archive with:
$ tar -xzf TNCUtil-src_[version].tar.gz
Step 2: Configure TNCUtil
Now switch to the new directory with
$ cd TNCUtil
And run configure script. Since we are working with linux, set the argument appropriate. See --help option for more details:
/TNCUtil$ ./configure linux
Step 3: Compile TNCUtil
In order to compile TNCUtil, run make script.
$ make
When make is finished, a new archive libTNCUtil.a resides in the build subdirectory.
Step 4: Install TNCUtil
$ make install
After that, the library is installed in /usr/local/lib/ and the header files are copied to /usr/local/include/TNCUtil/.
Finished
Congratulations, you've just finished to build and install TNCUtil.

