Couldn't generate ungrib.exe

Installing the WRF Preprocessing System

Couldn't generate ungrib.exe

Postby atyam » Thu Sep 15, 2016 3:59 am

Hello Users!

I am stuck with WPS compilation. I couldn't create ungrib.exe even though I made a successful run with libpng-1.2.50. Please check my log file below copied from terminal. Please help me to solve this issue

fahad@fahad-Satellite-L745:~$ cd Build_WRF/LIBRARIES
fahad@fahad-Satellite-L745:~/Build_WRF/LIBRARIES$ csh
% setenv DIR /home/fahad/Build_WRF/LIBRARIES
setenv CC gcc
setenv CXX g++
setenv FC gfortran
setenv FCFLAGS -m64
setenv F77 gfortran
setenv FFLAGS -m64
XDG_VTNR=7
LC_PAPER=ar_SA.UTF-8
LC_ADDRESS=ar_SA.UTF-8
XDG_SESSION_ID=c2
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/fahad
LC_MONETARY=ar_SA.UTF-8
CLUTTER_IM_MODULE=xim
SESSION=ubuntu
GPG_AGENT_INFO=/home/fahad/.gnupg/S.gpg-agent:0:1
TERM=xterm-256color
VTE_VERSION=4205
XDG_MENU_PREFIX=gnome-
SHELL=/bin/bash
QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
WINDOWID=65011722
LC_NUMERIC=ar_SA.UTF-8
UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1169
GNOME_KEYRING_CONTROL=
GTK_MODULES=gail:atk-bridge:unity-gtk-module
USER=fahad
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
QT_ACCESSIBILITY=1
LC_TELEPHONE=ar_SA.UTF-8
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
SESSION_MANAGER=local/fahad-Satellite-L745:@/tmp/.ICE-unix/1386,unix/fahad-Satellite-L745:/tmp/.ICE-unix/1386
DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg
DESKTOP_SESSION=ubuntu
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
QT_IM_MODULE=ibus
QT_QPA_PLATFORMTHEME=appmenu-qt5
LC_IDENTIFICATION=ar_SA.UTF-8
XDG_SESSION_TYPE=x11
PWD=/home/fahad/Build_WRF/LIBRARIES
JOB=unity-settings-daemon
XMODIFIERS=@im=ibus
GNOME_KEYRING_PID=
LANG=en_US.UTF-8
GDM_LANG=en_US
MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
LC_MEASUREMENT=ar_SA.UTF-8
COMPIZ_CONFIG_PROFILE=ubuntu
IM_CONFIG_PHASE=1
GDMSESSION=ubuntu
SESSIONTYPE=gnome-session
GTK2_MODULES=overlay-scrollbar
SHLVL=1
HOME=/home/fahad
XDG_SEAT=seat0
LANGUAGE=en_US
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
UPSTART_INSTANCE=
UPSTART_EVENTS=xsession started
XDG_SESSION_DESKTOP=ubuntu
LOGNAME=fahad
COMPIZ_BIN_PATH=/usr/bin/
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-CWr8r3iVMr
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
QT4_IM_MODULE=xim
LESSOPEN=| /usr/bin/lesspipe %s
INSTANCE=
UPSTART_JOB=unity7
XDG_RUNTIME_DIR=/run/user/1000
DISPLAY=:0
XDG_CURRENT_DESKTOP=Unity
GTK_IM_MODULE=ibus
LESSCLOSE=/usr/bin/lesspipe %s %s
LC_TIME=ar_SA.UTF-8
LC_NAME=ar_SA.UTF-8
XAUTHORITY=/home/fahad/.Xauthority
OLDPWD=/home/fahad
_=/bin/csh
DIR=/home/fahad/Build_WRF/LIBRARIES
CC=gcc
CXX=g++
FC=gfortran
FCFLAGS=-m64
F77=gfortran
% bash
fahad@fahad-Satellite-L745:~/Build_WRF/LIBRARIES$ cd libpng-1.2.50
fahad@fahad-Satellite-L745:~/Build_WRF/LIBRARIES/libpng-1.2.50$ ./configure --prefix=$DIR/grib2
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking how to run the C preprocessor... gcc -E
checking for sed... /bin/sed
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for ANSI C header files... (cached) yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for working strtod... yes
checking for memset... yes
checking for pow... no
checking for pow in -lm... yes
checking for zlibVersion in -lz... yes
checking if assembler code in pnggccrd.c can be compiled without PNG_NO_MMX_CODE... yes
checking if libraries can be versioned... yes
checking for symbol prefix...
configure: pkgconfig directory is ${libdir}/pkgconfig
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libpng.pc
config.status: creating libpng-config
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
fahad@fahad-Satellite-L745:~/Build_WRF/LIBRARIES/libpng-1.2.50$ make
make all-am
make[1]: Entering directory '/home/fahad/Build_WRF/LIBRARIES/libpng-1.2.50'
cp libpng-config libpng12-config
cp libpng.pc libpng12.pc
make[1]: Leaving directory '/home/fahad/Build_WRF/LIBRARIES/libpng-1.2.50'
fahad@fahad-Satellite-L745:~/Build_WRF/LIBRARIES/libpng-1.2.50$ make install
make[1]: Entering directory '/home/fahad/Build_WRF/LIBRARIES/libpng-1.2.50'
test -z "/home/fahad/Build_WRF/LIBRARIES/grib2/bin" || /bin/mkdir -p "/home/fahad/Build_WRF/LIBRARIES/grib2/bin"
/usr/bin/install -c libpng12-config '/home/fahad/Build_WRF/LIBRARIES/grib2/bin'
test -z "/home/fahad/Build_WRF/LIBRARIES/grib2/lib" || /bin/mkdir -p "/home/fahad/Build_WRF/LIBRARIES/grib2/lib"
/bin/bash ./libtool --mode=install /usr/bin/install -c libpng12.la libpng.la '/home/fahad/Build_WRF/LIBRARIES/grib2/lib'
libtool: install: /usr/bin/install -c .libs/libpng12.so.0.50.0 /home/fahad/Build_WRF/LIBRARIES/grib2/lib/libpng12.so.0.50.0
libtool: install: (cd /home/fahad/Build_WRF/LIBRARIES/grib2/lib && { ln -s -f libpng12.so.0.50.0 libpng12.so.0 || { rm -f libpng12.so.0 && ln -s libpng12.so.0.50.0 libpng12.so.0; }; })
libtool: install: (cd /home/fahad/Build_WRF/LIBRARIES/grib2/lib && { ln -s -f libpng12.so.0.50.0 libpng12.so || { rm -f libpng12.so && ln -s libpng12.so.0.50.0 libpng12.so; }; })
libtool: install: /usr/bin/install -c .libs/libpng12.lai /home/fahad/Build_WRF/LIBRARIES/grib2/lib/libpng12.la
libtool: install: /usr/bin/install -c .libs/libpng.so.3.50.0 /home/fahad/Build_WRF/LIBRARIES/grib2/lib/libpng.so.3.50.0
libtool: install: (cd /home/fahad/Build_WRF/LIBRARIES/grib2/lib && { ln -s -f libpng.so.3.50.0 libpng.so.3 || { rm -f libpng.so.3 && ln -s libpng.so.3.50.0 libpng.so.3; }; })
libtool: install: (cd /home/fahad/Build_WRF/LIBRARIES/grib2/lib && { ln -s -f libpng.so.3.50.0 libpng.so || { rm -f libpng.so && ln -s libpng.so.3.50.0 libpng.so; }; })
libtool: install: /usr/bin/install -c .libs/libpng.lai /home/fahad/Build_WRF/LIBRARIES/grib2/lib/libpng.la
libtool: install: /usr/bin/install -c .libs/libpng12.a /home/fahad/Build_WRF/LIBRARIES/grib2/lib/libpng12.a
libtool: install: chmod 644 /home/fahad/Build_WRF/LIBRARIES/grib2/lib/libpng12.a
libtool: install: ranlib /home/fahad/Build_WRF/LIBRARIES/grib2/lib/libpng12.a
libtool: install: /usr/bin/install -c .libs/libpng.a /home/fahad/Build_WRF/LIBRARIES/grib2/lib/libpng.a
libtool: install: chmod 644 /home/fahad/Build_WRF/LIBRARIES/grib2/lib/libpng.a
libtool: install: ranlib /home/fahad/Build_WRF/LIBRARIES/grib2/lib/libpng.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/sbin" ldconfig -n /home/fahad/Build_WRF/LIBRARIES/grib2/lib
----------------------------------------------------------------------
Libraries have been installed in:
/home/fahad/Build_WRF/LIBRARIES/grib2/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make install-exec-hook
make[2]: Entering directory '/home/fahad/Build_WRF/LIBRARIES/libpng-1.2.50'
cd /home/fahad/Build_WRF/LIBRARIES/grib2/bin; rm -f libpng-config
cd /home/fahad/Build_WRF/LIBRARIES/grib2/bin; ln -s libpng12-config libpng-config
+ cd /home/fahad/Build_WRF/LIBRARIES/grib2/lib
+ for ext in a la so sl dylib
+ rm -f libpng.a
+ test -f libpng12.a
+ ln -s libpng12.a libpng.a
+ for ext in a la so sl dylib
+ rm -f libpng.la
+ test -f libpng12.la
+ ln -s libpng12.la libpng.la
+ for ext in a la so sl dylib
+ rm -f libpng.so
+ test -f libpng12.so
+ ln -s libpng12.so libpng.so
+ for ext in a la so sl dylib
+ rm -f libpng.sl
+ test -f libpng12.sl
+ for ext in a la so sl dylib
+ rm -f libpng.dylib
+ test -f libpng12.dylib
make[2]: Leaving directory '/home/fahad/Build_WRF/LIBRARIES/libpng-1.2.50'
test -z "/home/fahad/Build_WRF/LIBRARIES/grib2/share/man/man3" || /bin/mkdir -p "/home/fahad/Build_WRF/LIBRARIES/grib2/share/man/man3"
/usr/bin/install -c -m 644 libpng.3 libpngpf.3 '/home/fahad/Build_WRF/LIBRARIES/grib2/share/man/man3'
test -z "/home/fahad/Build_WRF/LIBRARIES/grib2/share/man/man5" || /bin/mkdir -p "/home/fahad/Build_WRF/LIBRARIES/grib2/share/man/man5"
/usr/bin/install -c -m 644 png.5 '/home/fahad/Build_WRF/LIBRARIES/grib2/share/man/man5'
test -z "/home/fahad/Build_WRF/LIBRARIES/grib2/lib/pkgconfig" || /bin/mkdir -p "/home/fahad/Build_WRF/LIBRARIES/grib2/lib/pkgconfig"
/usr/bin/install -c -m 644 libpng12.pc '/home/fahad/Build_WRF/LIBRARIES/grib2/lib/pkgconfig'
test -z "/home/fahad/Build_WRF/LIBRARIES/grib2/include/libpng12" || /bin/mkdir -p "/home/fahad/Build_WRF/LIBRARIES/grib2/include/libpng12"
/usr/bin/install -c -m 644 png.h pngconf.h '/home/fahad/Build_WRF/LIBRARIES/grib2/include/libpng12'
make install-data-hook
make[2]: Entering directory '/home/fahad/Build_WRF/LIBRARIES/libpng-1.2.50'
cd /home/fahad/Build_WRF/LIBRARIES/grib2/include; rm -f png.h pngconf.h
cd /home/fahad/Build_WRF/LIBRARIES/grib2/include; ln -s libpng12/png.h png.h
cd /home/fahad/Build_WRF/LIBRARIES/grib2/include; ln -s libpng12/pngconf.h pngconf.h
cd /home/fahad/Build_WRF/LIBRARIES/grib2/lib/pkgconfig; rm -f libpng.pc
cd /home/fahad/Build_WRF/LIBRARIES/grib2/lib/pkgconfig; ln -s libpng12.pc libpng.pc
make[2]: Leaving directory '/home/fahad/Build_WRF/LIBRARIES/libpng-1.2.50'
make[1]: Leaving directory '/home/fahad/Build_WRF/LIBRARIES/libpng-1.2.50'
fahad@fahad-Satellite-L745:~/Build_WRF/LIBRARIES/libpng-1.2.50$ cd ..
fahad@fahad-Satellite-L745:~/Build_WRF/LIBRARIES$ cd ..
fahad@fahad-Satellite-L745:~/Build_WRF$ cd WPS
fahad@fahad-Satellite-L745:~/Build_WRF/WPS$ ./compile >& log.compile
fahad@fahad-Satellite-L745:~/Build_WRF/WPS$ ls -ls *.exe
0 lrwxrwxrwx 1 fahad fahad 23 Sep 15 10:10 geogrid.exe -> geogrid/src/geogrid.exe
0 lrwxrwxrwx 1 fahad fahad 23 Sep 15 10:10 metgrid.exe -> metgrid/src/metgrid.exe
fahad@fahad-Satellite-L745:~/Build_WRF/WPS$
atyam
 
Posts: 4
Joined: Tue Aug 30, 2016 4:27 pm

Re: Couldn't generate ungrib.exe

Postby atyam » Thu Sep 15, 2016 7:07 am

I could able to clear the issue by myself. I typed wrong command for configuring jasper. So the ungrib.exe was not created. After resolving, my WPS compile was successful.
atyam
 
Posts: 4
Joined: Tue Aug 30, 2016 4:27 pm


Return to Installation

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron