Rate This Document
Findability
Accuracy
Completeness
Readability

Compilation and Installation

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. 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
  3. Run the following command to go to source code directory:
    cd CAMX_v6-50
  4. Run the following command to modify the Makefile file:
    1. Open Makefile.
      vi Makefile
    2. Press i to enter the insert mode and modify line 64 in Makefile.
      MPI_INST = /path/to/OPENMPI
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  5. Run the following command to modify the MPI/util/Makefile file:
    1. Open MPI/util/Makefile.
      vi MPI/util/Makefile
    2. 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)
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  6. 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.

    Figure 1 Result example