Installing Trimaran on Linux
|
Page
1 | 2 |
3
Getting the Software
Our first stop will be at the Trimaran website, to grab the source from
here.
To download you have to click through the distributor's norice, and
then select the version you want. The version we'll be using is 3_0b.
Next, we'll need the "vcg" rpm. Although it can (and probably should)
be installed from source, its easier to grab the rpm. Get the rpm from this
location.
To install the rpm , fire up a terminal and "su" to root and install
the vcg rpm. |
[user@host ~]$ su
Password:
[root@host ~]$ rpm -Uvh vcg-1.30-1.i386.rpm
|
That was the easy part. Now
for the dirty-hack part
Getting the right version of GCC
Trimaran has been tested with gcc version 2.96 and 3.02 which are,
unfortunately , not the default compilers on Redhat. Redhat uses the
newer GCC 3.2 compiler, which cannot be used to (safely) build
Trimaran. To check your gcc version type "gcc -v " at the console. If
it shows 2.96 or 3.02 skip to the next section. Or else, stay glued.
Normally , there is an easy way to get out of this. ALthough GCC 3.2 is
the 'default' compiler, Red Hat also provides the older 2.96 version in
the form of the "gcc296" binary. Setting the environment variable
"CC=gcc296" should allow programs to use the older gcc. However, the
build system for trimaran does not accept this particular value, and so
I had to resort to this hack.(Note: There definitely is an alternative
to the following instructions. People in the know, please mail me)
Another problem is that the Trimaran installation specifically searches
for the "gnumake" command. In our continuing tradition of dirty hacks,
we create a link named "gnumake" to the actual "make" binary.
The following instructions are to be executed with care. Always make a
backup of files which are being moved, renamed or deleted.
|
[user@host /~]$ su
Password:
[root@host /~]$ cd /usr/bin
[root@host /~]$ mv gcc gcc.bak
[root@host /~]$ ln -s
gcc296 gcc
[root@host /~]$ ln -s make
gnumake
|
We have now successfully set
up a link named "gcc" to the binary executable "gcc296", and "gnumake"
to "make". The old gcc binary has been named gcc.bak.
<< prev next>>
|
|
|