Rate This Document
Findability
Accuracy
Completeness
Readability

Compiling and Installing FDS

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following commands to load environment variables:
    export PATH=/path/to/GNU/bin:/path/to/OPENMPI/bin:$PATH
    export LD_LIBRARY_PATH=/path/to/GNU/lib64:/path/to/OPENMPI/lib:$LD_LIBRARY_PATH
  3. Run the following command to decompress the FDS installation package:
    tar zxvf fds-FDS6.7.4.tar.gz
  4. Run the following command to switch to the directory generated after decompression:
    cd fds-FDS6.7.4
  5. Run the following commands to delete the -m64 compilation option.
    cd /path/to/FDS/fds-FDS6.7.4/Build
    sed -i "s/-m64//g" ./makefile

    The compilation option before modification:

    mpi_gnu_linux_64 : FFLAGS = -m64 -O2 -std=f2008

    The compilation option after modification:

    mpi_gnu_linux_64 : FFLAGS =  -O2 -std=f2008
  6. Run the following command to switch to the FDS compilation directory:
    cd /path/to/FDS/fds-FDS6.7.4/Build/mpi_gnu_linux_64
  7. Run the following command to run the automatic compilation script:
    ./make_fds.sh
  8. Run the following commands to add the FDS environment variable:
    export PATH=/path/to/FDS/fds-FDS6.7.4/Build/mpi_gnu_linux_64:$PATH