compile OBSGRID

awe3

New member
During i try to compile OBSGRID.exe i found such error:
gfortran -o plot_soundings.exe -m64 plot_soundings.o module_mapinfo.o module_report.o module_skewt.o date_pack_module.o -L/root/awel/miniconda3/envs/ncl_stable/lib -lncarg -lncarg_gks -lncarg_c -lX11 -lm -lcairo -L/root/awel/wrf-project/build_wrf/LIBRARIES/netcdf/lib -lnetcdf -lnetcdff -I/root/awel/wrf-project/build_wrf/LIBRARIES/netcdf/include
/usr/bin/ld: cannot find plot_soundings.o: No such file or directory
/usr/bin/ld: cannot find module_mapinfo.o: No such file or directory
/usr/bin/ld: cannot find module_report.o: No such file or directory
/usr/bin/ld: cannot find module_skewt.o: No such file or directory
/usr/bin/ld: cannot find date_pack_module.o: No such file or directory
collect2: error: ld returned 1 exit status
make: [Makefile:64: plot_soundings.exe] Error 1 (ignored)
please anyone who help me
 
I encoutered the same problem. Did you find any solutions to this?
During i try to compile OBSGRID.exe i found such error:
gfortran -o plot_soundings.exe -m64 plot_soundings.o module_mapinfo.o module_report.o module_skewt.o date_pack_module.o -L/root/awel/miniconda3/envs/ncl_stable/lib -lncarg -lncarg_gks -lncarg_c -lX11 -lm -lcairo -L/root/awel/wrf-project/build_wrf/LIBRARIES/netcdf/lib -lnetcdf -lnetcdff -I/root/awel/wrf-project/build_wrf/LIBRARIES/netcdf/include
/usr/bin/ld: cannot find plot_soundings.o: No such file or directory
/usr/bin/ld: cannot find module_mapinfo.o: No such file or directory
/usr/bin/ld: cannot find module_report.o: No such file or directory
/usr/bin/ld: cannot find module_skewt.o: No such file or directory
/usr/bin/ld: cannot find date_pack_module.o: No such file or directory
collect2: error: ld returned 1 exit status
make: [Makefile:64: plot_soundings.exe] Error 1 (ignored)
please anyone who help me
which compilers are you using, obsgrid is a tricky thing to install
 
OBSGRID.EXE made!
  1. Run the actual configure command:

    Bash

    ./configure<br>
    Select the option for Gfortran (usually option 2 or 3).
  2. RE-APPLY the fixes immediately:The ./configure command just overwrote everything. You must open the file and fix the three things again:

    Bash

    nano configure.oa<br>
    • CPP: Add -P -traditional-cpp -nostdinc
    • FFLAGS: Add -Wno-argument-mismatch (or leave it blank if using an older gfortran).
    • NETCDF: Ensure paths point to /home/iccs-jrf/Build_WRF/LIBRARIES/netcdf/.
  3. Compile (WITHOUT cleaning):

    Bash

    ./compile<br>
    Do not run ./clean -a this time, as that is what keeps deleting the "configured" status.

Summary of the "Golden Rule" for OBSGRID:​

  1. configure
  2. nano configure.oa (Apply fixes)
  3. compile
Never run clean -a after you have successfully configured and edited the file, or you will find yourself back at the "Do configure first" error!


#-----INSTALLING OBS GRID-----# @ Build_WRF

git clone GitHub - wrf-model/OBSGRID: Repository for OBSGRID
cd OBSGRID

./configure
#Select 2, and start editing configure.oa
#NETCDF_LPATH = -L/home/iccs-jrf/Build_WRF/LIBRARIES/netcdf/lib -lnetcdff -lnetcdf
#NETCDF_INC = -I/home/iccs-jrf/Build_WRF/LIBRARIES/netcdf/include
#FFLAGS = -ffree-form -O -fconvert=big-endian -frecord-marker=4 -Wno-argument-mismatch
#CPP = /usr/bin/cpp -P -traditional-cpp -nostdinc
#use sed commands
./clean -a
cp configure.oa.backup configure.oa
touch include_module_defn
./compile
#---------------------------------------------------------------------------------------------------------------------------
iccs-jrf@iccsjrf-HP-Pro-Tower-400-G9-PCI-Desktop-PC:~/Build_WRF/OBSGRID$ ls
arch compile configure.oa.backup obsgrid.exe run_cat_obs_files.csh
CHANGES configure include_module_defn ObsNudgingGuide.pdf src
clean configure.oa namelist.oa README util
 
OBSGRID.EXE made!
  1. Run the actual configure command:

    Bash

    ./configure<br>
    Select the option for Gfortran (usually option 2 or 3).
  2. RE-APPLY the fixes immediately:The ./configure command just overwrote everything. You must open the file and fix the three things again:

    Bash

    nano configure.oa<br>
    • CPP: Add -P -traditional-cpp -nostdinc
    • FFLAGS: Add -Wno-argument-mismatch (or leave it blank if using an older gfortran).
    • NETCDF: Ensure paths point to /home/iccs-jrf/Build_WRF/LIBRARIES/netcdf/.
  3. Compile (WITHOUT cleaning):

    Bash

    ./compile<br>
    Do not run ./clean -a this time, as that is what keeps deleting the "configured" status.

Summary of the "Golden Rule" for OBSGRID:​

  1. configure
  2. nano configure.oa (Apply fixes)
  3. compile
Never run clean -a after you have successfully configured and edited the file, or you will find yourself back at the "Do configure first" error!


#-----INSTALLING OBS GRID-----# @ Build_WRF

git clone GitHub - wrf-model/OBSGRID: Repository for OBSGRID
cd OBSGRID

./configure
#Select 2, and start editing configure.oa
#NETCDF_LPATH = -L/home/iccs-jrf/Build_WRF/LIBRARIES/netcdf/lib -lnetcdff -lnetcdf
#NETCDF_INC = -I/home/iccs-jrf/Build_WRF/LIBRARIES/netcdf/include
#FFLAGS = -ffree-form -O -fconvert=big-endian -frecord-marker=4 -Wno-argument-mismatch
#CPP = /usr/bin/cpp -P -traditional-cpp -nostdinc
#use sed commands
./clean -a
cp configure.oa.backup configure.oa
touch include_module_defn
./compile
#---------------------------------------------------------------------------------------------------------------------------
iccs-jrf@iccsjrf-HP-Pro-Tower-400-G9-PCI-Desktop-PC:~/Build_WRF/OBSGRID$ ls
arch compile configure.oa.backup obsgrid.exe run_cat_obs_files.csh
CHANGES configure include_module_defn ObsNudgingGuide.pdf src
clean configure.oa namelist.oa README util
I'll need to double check my codes thanks for that
 
Back
Top