Source Installation on Linux Systems
Tags:
This section will guide you through the general configuration and installation of TOL on Linux systems. There are several ways to install TOL for the Linux platform, either with a compile and configure process, or through various pre-packaged methods. This section is mainly focused around the process of compiling and configuring TOL and their Database Drivers (TOL-DBD).
Prerequisite software for compiling TOL:
- Both, the GNU C and the GNU C++ Compiler
- The GNU Make
- The GNU Scientific Library
- The SuiteSparse package (here available)
- The BZip2 File Compressor Library
- The ZipArchive Library (here available)
Prerequisite software for compiling the TOL Database Drivers:
- The GNU C Compiler
- The UnixODBC Client Access
- The MySQL C Client Access
- The PostgreSQL C Client Access
1. GNU C, C++, and Make
Frequently in Linux we find many ways to accomplish a task, and package installaton is no exception. The ways we describe here are certainly not the only ways to install packages. But if you are new to Linux, they will show you one way of installing a package and ensure that any prerequisite packages that you need are also installed. To achieve it we will use the apt-get command that comes with every Debian style Linux distributions.
If you are using an rpm-packaging style Linux distribution, like Fedora, openSUSE, or Mandriva check their User Manual and look for the way to install additional packages, since those distributions use to come with their own specific package management applications.
Since there's no point in doing unnecessary work, first check to see if you already have the prerequisite packages installed. Open a shell prompt, and use the which command to check that you have gcc, g++ and make:
/usr/bin/gcc
/usr/bin/g++
/usr/bin/make
However, if the
which command comes back with no output, then you don't have the command available. To install gcc, g++ and make with apt, using the previous console, become root either by typing the su command and its password, if you were using Debian gnu/Linux, or by typing sudo -i and your user password, if you were working with Ubuntu, and type the following command:danirus@adenina:~$ apt-get install gcc g++ make
2. GSL and BZip2
TOL makes use of the GNU Scientific Library and BZip2 File Compressor Library for several internal tasks. Install them typing the following commands:
danirus@adenina:~$ apt-get install libgsl0-dev libbz2-dev
The initial TOL setup and configuration process is controlled by the use of the command line options of the configure script. You could get a list of all available options along with short explanations running ./configure --help.

