To use the binary distribution, you must unpack it in the directory /usr/local as follows (change the path to the GCC+GPC binary distribution file as required):
cd /usr/local tar zxvf /path/to/gcc-2.95.2-gpc-19991030-rh61.tar.gzFinally add the following to your shell start up file to access the GNU Pascal compiler:
PATH=/usr/local/gcc/bin:$PATH
set path = ( /usr/local/gcc/bin $path)
Reading specs from /usr/local/gcc/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/specs gpc version 19991030, based on 2.95.2 19991024 (release)NOTE that you will also have gcc, g++, and g77 compilers as well.
NOTE that you can install this binary GCC+GPC distribution without fear of breaking your current compiler installation (assuming it's not already in /usr/local/gcc).
mkdir /usr/local/solver-5.2-src cd /usr/local/solver-5.2-src
NOTE: Don't set this to be the same as the source directory.
If you choose something like /usr/local/solver for the SSD then solver will be installed as follows:
/usr/local/solver/bin binaries and scripts
/usr/local/solver/modules library and header files
/usr/local/solver/toolsrc source code
PATH=/usr/local/solver/bin:$PATH
set path = ( /usr/local/solver/bin $path)
cd /tmp cp /usr/local/solver-5.2-src/examples/solver/exp.* . solv expThis should compile the example and launch the application. If it fails during compilation there should be enough information printed to diagnose the problem. If the compiled application does not launch (can't find exp.solver) make sure you put the current directory in your PATH, PATH=$PATH:. or set path = ($path .)
If you have a link problem with utilsrc/plotter, try un-setting your LD_LIBRARY_PATH variable: unsetenv LD_LIBRARY_PATH
You may have to set an alternate SYS_X11_LIBDIR directory in the Makefile if you have OpenWindows installed in a strange place.
If you cleared this to do the compilation, reset it to the default, but make sure it includes /usr/openwin/lib, eg: setenv LD_LIBRARY_PATH /usr/openwin/lib:/usr/lib