Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following commands to decompress the installation file package:
mkdir -p /path/to/CAMX cd /path/to/CAMX mkdir -p CAMX_v6-50 tar xzvf CAMx_v6-50-src-180430.tgz -C CAMX_v6-50
- Run the following command to go to source code directory:
cd CAMX_v6-50
- Run the following command to modify the Makefile file:
- Open Makefile.
vi Makefile
- Press i to enter the insert mode and modify line 64 in Makefile.
MPI_INST = /path/to/OPENMPI
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open Makefile.
- Run the following command to modify the MPI/util/Makefile file:
- Open MPI/util/Makefile.
vi MPI/util/Makefile
- Press i to enter the insert mode and modify lines 3, 9, and 11 in MPI/util/Makefile.
MPI_INST = /path/to/OPENMPI # LIB = -L$(MPI_INST)/lib -lmpi # CFLAGS = -mcmodel=small -O2 -I $(INC)
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open MPI/util/Makefile.
- Run the following commands to compile and install the software:
make COMPILER=gfortranomp MPI=openmpi -j20
After the compilation is successful, the CAMx.v6.50.openMPI.gfortranomp executable file is generated in the src directory. You can run the ls command to view the file.
After the compilation is successful, the CAMx.v6.50.openMPI.gfortranomp executable file is generated in the /path/to/CAMX/CAMX_v6-50 directory. You can run the ls /path/to/CAMX/CAMX_v6-50 command to view the file. Figure 1 shows the command output.
Parent topic: CAMx 6.50 Porting Guide (CentOS 7.6)
