User Tools

Site Tools


Missing Fortran Run-Time Environment under 32-bit Sparc Solaris

If you are running an old GAMS system under 32-bit Sparc Solaris and you do not have a Fortran Run-Time Environment (RTE) installed, then you will need to use the shared libraries contained in the zip files (Solaris 5.7) or (Solaris 5.8 and up).

The GAMS system uses dynamic linking for the Fortran run-time libraries, so these libraries must exist on your system for GAMS to run. You can check if you have these libraries by using the ldd command, which simulates the run-time loading. If you run ldd in the GAMS sysdir you may see output similar to the following:

$ldd gmsmi_ux.out =>    /usr/lib/ =>   /opt/SUNWspro/lib/ =>   /opt/SUNWspro/lib/ =>  /opt/SUNWspro/lib/ =>        /opt/SUNWspro/lib/ =>       /opt/SUNWspro/lib/ =>       /opt/SUNWspro/lib/ =>       /opt/SUNWspro/lib/ =>       /opt/SUNWspro/lib/ =>       /opt/SUNWspro/lib/ =>   /opt/SUNWspro/lib/ =>       /opt/SUNWspro/lib/ =>     /usr/lib/ =>     /usr/lib/

If the ldd command does not complain about missing libraries, it is likely you have the Fortran RTE installed, and can run GAMS without further ado. If the ldd command complains about missing libraries, then you have several options:

  • Create the directory expected by Sun's dynamic loader, and put the Fortran libraries there:
   mkdir -p /opt/SUNWspro/lib
   cd       /opt/SUNWspro/lib
   unzip /path/to/
  • Put the Fortran libraries into the GAMS system directory:
       cd /your/gams/sysdir
       unzip /path/to/

The GAMS system directory is added to LD_LIBRARY_PATH when GAMS runs so the Fortran-based solvers will find the libs in the GAMS sysdir.

  • Put the Fortran libraries into any place you like and set the environment variable LD_LIBRARY_PATH to point to this:
    • for the Bash shell:
     mkdir /your/special/spot
     cd /your/special/spot
     unzip /path/to/
     export LD_LIBRARY_PATH=/your/special/spot:$LD_LIBRARY_PATH
  • for C shell and its variants:setenv LD_LIBRARY_PATH /your/special/spot:$LD_LIBRARY_PATH
IMPRESSUM / LEGAL NOTICEPRIVACY POLICY installation/missing_fortran_run-time_environment_under_32-bit_sparc_solaris.txt · Last modified: 2013/12/09 09:53 by support