Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Go to the SPIDER installation directory.
cd /path/to/SPIDER
- Decompress the installation package.
tar -xvf spiderweb.24.08.tar.gz
- Go to the web module directory generated after the decompression.
cd web/src
- 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.
- Compile the web module.
make -f Makefile_linux_dir64
- Go to the SPIDER module directory generated after the decompression.
cd ../../spider/src
- Modify the configuration file. For details, see Table 1.
Table 1 Modifying the configuration file File Name
Procedure
star2doc.f
- Open the star2doc.f file.
vi star2doc.f
- Set the line number.
:set nu
- Press i to enter the insert mode. Modify line 358 as follows:
358 READ(CTOKEN(1:NCHAR),*) IDLIST
- Press Esc, type :wq!, and press Enter to save the file and exit.
pw3sr.f
- Open the pw3sr.f file.
vi pw3sr.f
- Set the line number.
:set nu
- 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)
- Press Esc, type :wq!, and press Enter to save the file and exit.
pw2sr.f
- Open the pw2sr.f file.
vi pw2sr.f
- Set the line number.
:set nu
- 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)
- Press Esc, type :wq!, and press Enter to save the file and exit.
pr3d.f
- Open the pr3d.f file.
vi pr3d.f
- Set the line number.
:set nu
- Press i to enter the insert mode. Modify line 88 as follows:
88 WANTSQRTS = (FSCOP .eqv. .TRUE.)
- Press Esc, type :wq!, and press Enter to save the file and exit.
Makefile_linux.gfort
- Open the Makefile_linux.gfort file.
vi Makefile_linux.gfort
- Set the line number.
:set nu
- Press i to enter the insert mode. Modify line 39 as follows:
39 FFTWLIBDIR = path/to/fftw/lib
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the star2doc.f file.
- Compile the SPIDER module.
yum install gcc-gfortran.aarch64 make -f Makefile_linux.gfort
Parent topic: SPIDER 24.08 Porting Guide (CentOS 7.6)