WPS installation on Ubuntu

Installing the WRF Preprocessing System

WPS installation on Ubuntu

Postby apattant » Wed Jan 09, 2013 5:01 pm

Hello,

I am running into all kinds of errors trying to install WRF/WPS on an ubuntu machine for the sole purpose of testing a configuration. I believe I have installed all the necessary packages with Ubuntu's package manager but I am getting nothing but command not found error 127 messages when I compile WPS. I have had problems with my netcdf installation in the past but I really don't have a clue how to problem solve this issue. Any help would be appreciated. Below is what the beginning of my log file looks like when I compile:

**** Compiling WPS and all utilities ****


***************************************************************************************
Error : Not building geogrid. Check whether WRF is compiled in /home/kahi/akp4221/WPS/../WRFV3
***************************************************************************************

( cd src/ngl ; make -i -r DEV_TOP="/home/kahi/akp4221/WPS" CC="gcc" FC="g95" RANLIB="echo" all )
make[1]: Entering directory `/home/kahi/akp4221/WPS/ungrib/src/ngl'
( cd w3 ; make -i -r DEV_TOP="/home/kahi/akp4221/WPS" all ; echo w3/libw3.a )
make[2]: Entering directory `/home/kahi/akp4221/WPS/ungrib/src/ngl/w3'
Makefile:44: warning: overriding commands for target `.f.o'
/home/kahi/akp4221/WPS/configure.wps:92: warning: ignoring old commands for target `.f.o'
Makefile:48: warning: overriding commands for target `.c.o'
/home/kahi/akp4221/WPS/configure.wps:88: warning: ignoring old commands for target `.c.o'
/bin/rm -f bacio_module.o
g95 -ffixed-form -g -fno-second-underscore -c bacio_module.f
make[2]: g95: Command not found
make[2]: [bacio_module.o] Error 127 (ignored)
/bin/rm -f getgb.o
g95 -ffixed-form -g -fno-second-underscore -c getgb.f
make[2]: g95: Command not found
make[2]: [getgb.o] Error 127 (ignored)
/bin/rm -f getgbmh.o
g95 -ffixed-form -g -fno-second-underscore -c getgbmh.f
make[2]: g95: Command not found
make[2]: [getgbmh.o] Error 127 (ignored)
/bin/rm -f putgbex.o
g95 -ffixed-form -g -fno-second-underscore -c putgbex.f
make[2]: g95: Command not found
make[2]: [putgbex.o] Error 127 (ignored)
/bin/rm -f w3fi73.o
g95 -ffixed-form -g -fno-second-underscore -c w3fi73.f
make[2]: g95: Command not found
make[2]: [w3fi73.o] Error 127 (ignored)
/bin/rm -f getgb1r.o
g95 -ffixed-form -g -fno-second-underscore -c getgb1r.f
make[2]: g95: Command not found
make[2]: [getgb1r.o] Error 127 (ignored)
/bin/rm -f getgbmp.o
g95 -ffixed-form -g -fno-second-underscore -c getgbmp.f
make[2]: g95: Command not found
make[2]: [getgbmp.o] Error 127 (ignored)
apattant
 
Posts: 21
Joined: Thu Apr 02, 2009 8:21 pm

Re: WPS installation on Ubuntu

Postby apattant » Wed Jan 09, 2013 6:00 pm

I realized that it was trying to compile with g95 instead of gfortran, which is how WRF was built. When I correct this, only ungrib.exe is produced and no others...It looks like a problem of little-endian and big-endian being redefined because everything looks good until here:

read_geogrid.c:23:1: warning: "BIG_ENDIAN" redefined
In file included from /usr/include/sys/types.h:217,
from /usr/include/stdlib.h:320,
from read_geogrid.c:12:
/usr/include/endian.h:47:1: warning: this is the location of the previous definition
read_geogrid.c:24:1: warning: "LITTLE_ENDIAN" redefined
/usr/include/endian.h:46:1: warning: this is the location of the previous definition
read_geogrid.c: In function ‘read_geogrid_’:
read_geogrid.c:123: warning: left shift count >= width of type
gfortran -g -o geogrid.exe cio.o wrf_debug.o bitarray_module.o constants_module.o module_stringutil.o geogrid.o gridinfo_module.o hash_module.o interp_module.o list_module.o llxy_module.o misc_definitions_module.o module_debug.o module_map_utils.o output_module.o parallel_module.o process_tile_module.o proc_point_module.o queue_module.o read_geogrid.o smooth_module.o source_data_module.o \
/home/kahi/akp4221/WPS/../WRFV3/frame/module_driver_constants.o \
/home/kahi/akp4221/WPS/../WRFV3/frame/pack_utils.o /home/kahi/akp4221/WPS/../WRFV3/frame/module_machine.o \
/home/kahi/akp4221/WPS/../WRFV3/frame/module_internal_header_util.o \
-I/home/kahi/akp4221/WPS/../WRFV3/external/io_netcdf -I/home/kahi/akp4221/WPS/../WRFV3/external/io_grib_share -I/home/kahi/akp4221/WPS/../WRFV3/external/io_grib1 -I/home/kahi/akp4221/WPS/../WRFV3/external/io_int -I/home/kahi/akp4221/WPS/../WRFV3/inc \
-L/home/kahi/akp4221/WPS/../WRFV3/external/io_grib1 -lio_grib1 -L/home/kahi/akp4221/WPS/../WRFV3/external/io_grib_share -lio_grib_share -L/home/kahi/akp4221/WPS/../WRFV3/external/io_int -lwrfio_int -L/home/kahi/akp4221/WPS/../WRFV3/external/io_netcdf -lwrfio_nf -L/usr/local/lib -lnetcdf \

/usr/bin/ld: cannot find -lwrfio_nf
collect2: ld returned 1 exit status
make[1]: [geogrid.exe] Error 1 (ignored)

I'm not sure why metgrid.exe won't build because this is the only curious looking part of the log file:

/home/kahi/akp4221/WPS/../WRFV3/frame/module_driver_constants.o \
/home/kahi/akp4221/WPS/../WRFV3/frame/pack_utils.o /home/kahi/akp4221/WPS/../WRFV3/frame/module_machine.o \
/home/kahi/akp4221/WPS/../WRFV3/frame/module_internal_header_util.o \
-I/home/kahi/akp4221/WPS/../WRFV3/external/io_netcdf -I/home/kahi/akp4221/WPS/../WRFV3/external/io_grib_share -I/home/kahi/akp4221/WPS/../WRFV3/external/io_grib1 -I/home/kahi/akp4221/WPS/../WRFV3/external/io_int -I/home/kahi/akp4221/WPS/../WRFV3/inc \
-L/home/kahi/akp4221/WPS/../WRFV3/external/io_grib1 -lio_grib1 -L/home/kahi/akp4221/WPS/../WRFV3/external/io_grib_share -lio_grib_share -L/home/kahi/akp4221/WPS/../WRFV3/external/io_int -lwrfio_int -L/home/kahi/akp4221/WPS/../WRFV3/external/io_netcdf -lwrfio_nf -L/usr/local/lib -lnetcdf \

/usr/bin/ld: cannot find -lwrfio_nf
collect2: ld returned 1 exit status
make[1]: [metgrid.exe] Error 1 (ignored)
apattant
 
Posts: 21
Joined: Thu Apr 02, 2009 8:21 pm

Re: WPS installation on Ubuntu

Postby Cypresslin » Fri Jan 11, 2013 4:36 am

According to this message within your previous post: "Error : Not building geogrid. Check whether WRF is compiled in /home/kahi/akp4221/WPS/../WRFV3"
Did you build WRF first?
Don't forget that WRFV3 and WPS should be located in the same directory.

or you have to specify the path of WRF_DIR variable in the configure.wps file.
GrADS Palette - Color map generator for GrADS
http://cypresslin.web.fc2.com/Projects/ENG-GrADSPalette.html
Cypresslin
 
Posts: 30
Joined: Sun Jun 20, 2010 2:31 pm

Re: WPS installation on Ubuntu

Postby apattant » Tue Jan 15, 2013 9:12 pm

WRFV3 is built in the same directory as WPS, so the default path (../WRFV3) points to the correct location.
apattant
 
Posts: 21
Joined: Thu Apr 02, 2009 8:21 pm

Re: WPS installation on Ubuntu

Postby Cypresslin » Wed Jan 16, 2013 4:57 am

hmm...

maybe the WRF is not being built correctly?

Check if the libwrfio_nf.a file exist in your WRFV3/external/io_netcdf/ directory.
GrADS Palette - Color map generator for GrADS
http://cypresslin.web.fc2.com/Projects/ENG-GrADSPalette.html
Cypresslin
 
Posts: 30
Joined: Sun Jun 20, 2010 2:31 pm

Re: WPS installation on Ubuntu

Postby apattant » Thu Jan 24, 2013 11:15 pm

That file does exist. My WRFV3 build is ok.

When I configure for WPS I get no option for gfortran, which is how I built WRFV3. So I choose g95 and change the entries in configure.wps for FC and SFC. The problem was I didn't take out the CCPFLAG = -DLINUXG95. I got it to build finally. Thanks for your suggestion though, it made me go back and find the problem!

-Andre
apattant
 
Posts: 21
Joined: Thu Apr 02, 2009 8:21 pm


Return to Installation

Who is online

Users browsing this forum: No registered users and 2 guests