no ungrib.exe

Installing the WRF Preprocessing System

no ungrib.exe

Postby nenacarina » Mon Jul 20, 2009 5:54 am

Hi! I've successfully installed WRF V3.1. I'm now installing WPS 3.1. After running compile.exe, only geogrid.exe and metgrid.exe are created and no ungrib.exe. Any help would be greatly appreciated! Thanks.
nenacarina
 
Posts: 7
Joined: Thu Jul 02, 2009 4:24 am

Re: no ungrib.exe

Postby jimmyc » Mon Jul 20, 2009 4:18 pm

do you have the correct libraries like jasper for the compile with grib2 support?

Carefully look at the output from the wps configure comand. At the very beginning it will tell you if it found all the libraries you need for the options you have requested.

Then you should check the errors to see if they are only related to missing libraries.
The views expressed in this message do not necessarily reflect those of NOAA or the National Weather Service or the University of Oklahoma.
James Correia, Jr
jimmyc
 
Posts: 518
Joined: Tue Apr 15, 2008 1:10 am

Re: no ungrib.exe

Postby nenacarina » Mon Jul 20, 2009 10:59 pm

Thanks for the reply Jimmy!
Yes, I have set JASPERINC and JASPERLIB variables.

Here are the errors that I found. The most common is that it couldn't find "-lf95".

Code: Select all
g95 -o ungrib.exe -g misc_definitions_module.o debug_cio.o module_debug.o module_stringutil.o table.o module_datarray.o gridinfo.o new_storage.o filelis
t.o ungrib.o output.o rrpr.o rd_grib1.o file_delete.o datint.o rd_grib2.o  \
                                -L./ngl -lw3 -lg2_4 \
                                -L/data3a/mp/gill/WPS_LIBS/local/lib -ljasper -lpng12 -lpng -lz \
                                -L. -lpgu
ld: cannot find -lf95
make[1]: [ungrib.exe] Error 1 (ignored)
....
....
....
g95 -o g1print.exe -g g1print.o gribcode.o module_debug.o debug_cio.o libpgu.a
ld: cannot find -lf95
make[1]: [g1print.exe] Error 1 (ignored)
....
....
....
g95 -o g2print.exe -g g2print.o \
                                filelist.o gridinfo.o \
                                -L. -lpgu \
                                -L./ngl -lw3 -lg2_4 \
                                -L/data3a/mp/gill/WPS_LIBS/local/lib -ljasper -lpng12 -lpng -lz
ld: cannot find -lf95
make[1]: [g2print.exe] Error 1 (ignored)
....
....
....
g95 -ffree-form -g -fno-second-underscore -c plotfmt.f90
Fatal Error: While reading module 'read_met_module' found module version 0, expected 8.
make[1]: [plotfmt.o] Error 1 (ignored)
g95 -o plotfmt.exe -g plotfmt.o read_met_module.o module_debug.o \
                misc_definitions_module.o cio.o met_data_module.o \
                -L/lib -lncarg -lncarg_gks -lncarg_c -L/usr/X11R6/lib -lX11
g95: plotfmt.o: No such file or directory
make[1]: [plotfmt.exe] Error 1 (ignored)
....
....
....
g95 -o rd_intermediate.exe -g rd_intermediate.o read_met_module.o \
                module_debug.o misc_definitions_module.o cio.o met_data_module.o
ld: cannot find -lf95
make[1]: [rd_intermediate.exe] Error 1 (ignored)
....
....
....
g95 -ffree-form -g -fno-second-underscore -c plotgrids.f90
Fatal Error: While reading module 'map_utils' found module version 0, expected 8.
make[1]: [plotgrids.o] Error 1 (ignored)
g95 -o plotgrids.exe -g module_map_utils.o module_debug.o cio.o constants_module.o misc_definitions_module.o \
                plotgrids.o -L/lib -lncarg -lncarg_gks -lncarg_c -L/usr/X11R6/lib -lX11
g95: plotgrids.o: No such file or directory
make[1]: [plotgrids.exe] Error 1 (ignored)
....
....
....
g95 -o mod_levs.exe -g mod_levs.o module_debug.o read_met_module.o \
                write_met_module.o misc_definitions_module.o cio.o met_data_module.o
ld: cannot find -lf95
make[1]: [mod_levs.exe] Error 1 (ignored)
....
....
....
g95 -g -o avg_tsfc.exe avg_tsfc.o cio.o module_debug.o gridinfo_module.o \
                read_met_module.o write_met_module.o module_date_pack.o \
                misc_definitions_module.o met_data_module.o
ld: cannot find -lf95
make[1]: [avg_tsfc.exe] Error 1 (ignored)
....
....
....
g95 -g -o calc_ecmwf_p.exe calc_ecmwf_p.o cio.o module_debug.o module_stringutil.o gridinfo_module.o \
                read_met_module.o write_met_module.o module_date_pack.o \
                misc_definitions_module.o met_data_module.o
ld: cannot find -lf95
make[1]: [calc_ecmwf_p.exe] Error 1 (ignored)


I don't know if this is related, but I actually removed the "-f90=g95" for FC and "-cc=gcc" for CC command line options in both configure.wrf and configure.wps after having the following errors:

Code: Select all
f951: error: unrecognized command line option "-f90=g95"

and
Code: Select all
gcc: unrecognized option '-cc=gcc'


Thanks!
nenacarina
 
Posts: 7
Joined: Thu Jul 02, 2009 4:24 am

Re: no ungrib.exe

Postby dcvz » Tue Jul 21, 2009 12:01 am

You've got several problems here.

First of all WPS does not recognize the JASPERINC and JASPERLIB environment variables - they are for WRF only. You need to edit configure.wps and replace /data3a/gill... with your own library path.

I don't understand the module 0 / module 8 error nor the -lf95 error. It almost looks like your g95 is not set up properly. It should not be necessary to remove the -f90-g95 from the configure files.

Can you compile a simple 'hello world' program with g95 on your machine? Are your sure your LD_LIBRARY_PATH is correct?
dcvz
 
Posts: 128
Joined: Tue Apr 15, 2008 12:02 am

Re: no ungrib.exe

Postby nenacarina » Tue Jul 21, 2009 5:17 am

Hello dcvz! Thanks for the reply.
I now have ungrib.exe after changing the path and reinstalling g95. I tried a simple hello world and it worked.

Still got a few problems though. I only have g1print.exe and g2print.exe in my util folder. Here are the errors I got after compiling. I think most if not all are g95 related problems. Thanks in advance!

Code: Select all
g95 -ffree-form -g -fno-second-underscore -c plotfmt.f90
Fatal Error: While reading module 'read_met_module' found module version 0, expected 8.
make[1]: [plotfmt.o] Error 1 (ignored)
g95 -o plotfmt.exe -g plotfmt.o read_met_module.o module_debug.o \
                misc_definitions_module.o cio.o met_data_module.o \
                -L/lib -lncarg -lncarg_gks -lncarg_c -L/usr/X11R6/lib -lX11
g95: plotfmt.o: No such file or directory
make[1]: [plotfmt.exe] Error 1 (ignored)
make[1]: Leaving directory `/root/WPS/util/src'
...
...
...
/root/g95-install/bin/../lib/gcc-lib/x86_64-unknown-linux-gnu/4.0.3//libf95.a(main.o): In function `main':
/root/g95-0.92/libf95.a-0.92/runtime/main.c:60: undefined reference to `MAIN_'
make[1]: [rd_intermediate.exe] Error 1 (ignored)
make[1]: Leaving directory `/root/WPS/util/src'
...
...
...
g95 -ffree-form -g -fno-second-underscore -c plotgrids.f90
Fatal Error: While reading module 'map_utils' found module version 0, expected 8.
make[1]: [plotgrids.o] Error 1 (ignored)
g95 -o plotgrids.exe -g module_map_utils.o module_debug.o cio.o constants_module.o misc_definitions_module.o \
                plotgrids.o -L/lib -lncarg -lncarg_gks -lncarg_c -L/usr/X11R6/lib -lX11
g95: plotgrids.o: No such file or directory
make[1]: [plotgrids.exe] Error 1 (ignored)
make[1]: Leaving directory `/root/WPS/util/src'
...
...
...
/root/g95-install/bin/../lib/gcc-lib/x86_64-unknown-linux-gnu/4.0.3//libf95.a(main.o): In function `main':
/root/g95-0.92/libf95.a-0.92/runtime/main.c:60: undefined reference to `MAIN_'
make[1]: [mod_levs.exe] Error 1 (ignored)
make[1]: Leaving directory `/root/WPS/util/src'
...
...
...
/root/g95-install/bin/../lib/gcc-lib/x86_64-unknown-linux-gnu/4.0.3//libf95.a(main.o): In function `main':
/root/g95-0.92/libf95.a-0.92/runtime/main.c:60: undefined reference to `MAIN_'
make[1]: [avg_tsfc.exe] Error 1 (ignored)
make[1]: Leaving directory `/root/WPS/util/src'
...
...
...
/root/g95-install/bin/../lib/gcc-lib/x86_64-unknown-linux-gnu/4.0.3//libf95.a(main.o): In function `main':
/root/g95-0.92/libf95.a-0.92/runtime/main.c:60: undefined reference to `MAIN_'
make[1]: [calc_ecmwf_p.exe] Error 1 (ignored)
make[1]: Leaving directory `/root/WPS/util/src'
nenacarina
 
Posts: 7
Joined: Thu Jul 02, 2009 4:24 am

Re: no ungrib.exe

Postby nenacarina » Thu Jul 23, 2009 12:37 am

Finally figured out my problem. :ugeek:

I was compiling WPS using g95 while my WRF was compiled using gfortran. I read in some other threads that it is really important to compile both using the same compilers. I used gfortran in compiling WPS and now everything is working as it should be. :D Also, there is no gfortran option during configuration of WPS. You may just easily replace g95 with gfortran in your configure.wps file. ;)
nenacarina
 
Posts: 7
Joined: Thu Jul 02, 2009 4:24 am


Return to Installation

Who is online

Users browsing this forum: No registered users and 1 guest