Compiling Tol 1.1.5 under Linux


If you want to look at the very inside of Tol or you are interested in debugging the language, then you can compile and install Tol from the source distribution. It is a straigtforward process described below.

Please contact us at Tol-Users mailing list whether you had any problem or question during the process.

1. C++

Before compiling Tol you should have installed the GNU C++ compiler, that is part of the GCC (the GNU Compiler Collection) and includes the Std C++ library and the G++ compiler.

Find and install the g++ package. If you are using a Debian based Linux distribution it's as easy as typing the next command:

root@adenina:~# apt-get install g++

2. Tol Dependencies

Tol uses other packages to implement some of their functionalities. Most of those packages are part of almost every Linux distributions and the rest you can find in the Debian packages repository of Tol-Project.org.

Required packages during Tol compilation:
under packages.tol-project.org: in almost every Linux distributions:
libparmetis-dev libgsl0-dev
libsuitesparse-dev refblas3-dev
libziparch0-dev lapack3-dev
libg2c0-dev
libbz2-dev
zlib1g-dev

If you have not still done, you can go to Setting up the Tol-Project Debian repository, and continue typing the next apt command to install all required packages:

root@adenina:~# apt-get install libgsl0-dev refblas3-dev lapack3-dev libg2c0-dev libbz2-dev zlib1g-dev libparmetis-dev libsuitesparse-dev libziparch0-dev

The sources of packages under Tol-Project repository are available under /pub/src/contrib/ directory.

3. Autoconfigure, compile and install

Once you have downloaded the latest release of Tol, you have to expand the tarball into its constituent files. Use the next tar command for this, and continue with the common-build script for preparing the compilation:

danirus@adenina:~$ tar -xvzf tol-1.1.5.tar.gz
danirus@adenina:~$ cd tol-1.1.5
danirus@adenina:~/tol-1.1.5$ ./common-build

The common-build script should finish with:

  To build TOL v1.1.5 type:
  make
  make install

But if you get an error message it could be a missing component or a misconfiguration. Please don't hesitate to contact us at Tol-Users mailing list, we will be pleased to help you.

If you got the expected output, continue with make:

danirus@adenina:~/tol-1.1.5$ make

And to install the compilation result, as root, type:

root@adenina:/home/danirus/tol-1.1.5$ make install

4. Try Tol

Now you can try if Tol has been properly installed, launch the console and type some simple sentences:

danirus@adenina:~$ tol115 -d


-----------------------------------------------------------------
TOL Simple Expression Analizer.
-----------------------------------------------------------------
Type $HELP and return to know more about this TOL environment.

> Real r = 8191;
8191.000000

> Real diam = pi * r;
25732.785426

> WriteLn("Hello World!");
Hello World!

> $END

TRACE Time = 2007/03/06 20:11:17 Cores = 146392
END

Languages

User login

sponsored by

profit.pngminitc.png

Syndicate

Syndicate content