Compiling and Installing FDS
Procedure
- Use PuTTY to log in to the server as the root user.
- 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
- Run the following command to decompress the FDS installation package:
tar zxvf fds-FDS6.7.4.tar.gz
- Run the following command to switch to the directory generated after decompression:
cd fds-FDS6.7.4
- 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
- Run the following command to switch to the FDS compilation directory:
cd /path/to/FDS/fds-FDS6.7.4/Build/mpi_gnu_linux_64
- Run the following command to run the automatic compilation script:
./make_fds.sh
- 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
Parent topic: FDS 6.7.4 Porting Guide (CentOS 7.6)