我要评分
获取效率
正确性
完整性
易理解

Compilation and Installation

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Go to the SPIDER installation directory.
    cd /path/to/SPIDER
  3. Decompress the installation package.
    tar -xvf spiderweb.24.08.tar.gz
  4. Go to the web module directory generated after the decompression.
    cd web/src
  5. Install the dependencies.
    yum install motif libXp libXt libX11 libSM libxcb libXau libXp-devel motif-devel

    If there is no output after you run the echo $DISPLAY command, open the shell window again.

  6. Compile the web module.
    make -f Makefile_linux_dir64
  7. Go to the SPIDER module directory generated after the decompression.
    cd ../../spider/src
  8. Modify the configuration file. For details, see Table 1.
    Table 1 Modifying the configuration file

    File Name

    Procedure

    star2doc.f

    1. Open the star2doc.f file.
      vi star2doc.f
    2. Set the line number.
      :set nu
    3. Press i to enter the insert mode. Modify line 358 as follows:
      358  READ(CTOKEN(1:NCHAR),*) IDLIST
    4. Press Esc, type :wq!, and press Enter to save the file and exit.

    pw3sr.f

    1. Open the pw3sr.f file.
      vi pw3sr.f
    2. Set the line number.
      :set nu
    3. Press i to enter the insert mode. Modify lines 37 and 38 as follows:
      37  INTEGER      :: NX,NY,NZ
      38  REAL         :: Q(NX+2-MOD(NX,2),NY,NZ)
    4. Press Esc, type :wq!, and press Enter to save the file and exit.

    pw2sr.f

    1. Open the pw2sr.f file.
      vi pw2sr.f
    2. Set the line number.
      :set nu
    3. Press i to enter the insert mode. Modify lines 241 and 242 as follows:
      241  INTEGER      :: NX,NY
      242  REAL         :: Q(NX+2-MOD(NX,2), NY)
    4. Press Esc, type :wq!, and press Enter to save the file and exit.

    pr3d.f

    1. Open the pr3d.f file.
      vi pr3d.f
    2. Set the line number.
      :set nu
    3. Press i to enter the insert mode. Modify line 88 as follows:
      88  WANTSQRTS = (FSCOP .eqv. .TRUE.)
    4. Press Esc, type :wq!, and press Enter to save the file and exit.

    Makefile_linux.gfort

    1. Open the Makefile_linux.gfort file.
      vi Makefile_linux.gfort
    2. Set the line number.
      :set nu
    3. Press i to enter the insert mode. Modify line 39 as follows:
      39  FFTWLIBDIR = path/to/fftw/lib
    4. Press Esc, type :wq!, and press Enter to save the file and exit.
  9. Compile the SPIDER module.
    yum install gcc-gfortran.aarch64
    make -f Makefile_linux.gfort