Error "F90-F-0004-Unable to open MODULE file sigio_module.mod" Reported When Compiling the w3emc Module
Symptom
During the NCEPLIBS compilation and installation, the w3emc module reports the following error:

Key Process and Cause Analysis
None
Conclusion and Solution
- Modify the /w3emc.dir/build.make file.
- Open the /w3emc.dir/build.make file.
vi /path/to/NCEPLIBS/NCEPLIBS-1.2.0/build/CMakeFiles/w3emc.dir/build.make
- Press i to enter the edit mode and modify the content in line 117.
cd /path/to/NCEPLIBS/NCEPLIBS-1.2.0/build/w3emc/src/w3emc-build && sed -i "s/isystem/I/g" `grep -rl "isystem"` && $(MAKE)
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the /w3emc.dir/build.make file.
- Modify the /nceplibs-w3emc/src/gblevents.f file.
- Modify the /nceplibs-w3emc/src/gblevents.f file.
vi /path/to/NCEPLIBS/NCEPLIBS-1.2.0/download/nceplibs-w3emc/src/gblevents.f
- Press i to enter the edit mode and modify the file as follows:
Modify line 2463 as follows:
INTEGER IDATE(8,2),JDATE(8,2),KDATE(8,2),KINDX(2),KINDX_2
Replace the content from ELSE in line 2783 to ENDIF with the following:
ELSE KINDX_2 = ABS(KINDX(2)) COFS= $ ((KINDX_2*COFS_f(:,:,1)) +(KINDX(1)*COFS_f(:,:,2)))/3. COFV= $ ((KINDX_2*COFV_f(:,:,:,1))+(KINDX(1)*COFV_f(:,:,:,2)))/3. ENDIF
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Modify the /nceplibs-w3emc/src/gblevents.f file.
- Perform the compilation again.
make
Parent topic: Troubleshooting
