Hi all,
I’ve tested this install notes in several systems running Debian Lenny OS. The last time I’ve installed was in:
$uname -a
Linux mulita 2.6.26-2-686 #1 SMP Wed Feb 10 08:59:21 UTC 2010 i686 GNU/Linux
Install notes:
1. Get the sources of GreatSPN
2. Packages needed for a correct installation:
libmotif-dev
libx11-dev
libxt-dev
libxext-dev
libxp-dev
libglib2.0-dev
flex
csh
make
build-essential
uil
You will need also yacc, but in this case you should use a special yacc (some problem arises with the last version). Get the correct yacc
here.
$gzip -d yacc.tar.gz
$tar xvf yacc.tar
$sudo mv yacc /usr/bin/.
3. Once you have installed all packages above, create a directory, move (usually /usr/local) and ‘untar’ the sources
$mkdir GreatSPN
$mv SOURCES.tar.gz GreatSPN/.
$sudo mv GreatSPN /usr/local
$cd /usr/local/GreatSPN/
$tar xvf SOURCES.tar.gz
4. BEFORE compiling it, if you are using GCC 4.3 you should modify two files. Add the following include
#include <cstdlib>
to the files
SOURCES/WN/SOURCE/RESRG/src/esrg1.cpp
SOURCES/WN/SOURCE/RESRG/src/interface.cpp
Once added, you should have no problem compiling it:
$make -f Makefile.Linux-OpenMotif
If everything was fine, you have compiled rightly GreatSPN, congratulations! Now, time to configure your system to work with it.
5. Append the following lines to your shell resource file (~/.basrhrc if you use BASH):
export PATH=$PATH:/usr/local/GreatSPN/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/usr/X11R6/lib
6. That’s all folks, enjoy it! (remember: to execute GreatSPN, in a terminal execute the command ‘greatspn’)