How to install WRF 3.6.1 on Ubuntu 14.10 server.

All things involving the setup (compiling, NetCDF, etc.) of the WRF Model itself.

How to install WRF 3.6.1 on Ubuntu 14.10 server.

Postby aoddy » Tue Sep 09, 2014 11:17 pm

Today, I really need to share some experience about installation of WRF 3.6.1 on Ubunt 14.10 server. OK let's start now.

Server specification:

OS : Ubuntu Server 14.10 and install ubuntu-gnome-desktop
CPU : Intel Core i3 (2 Cores)
Memory : 8 GB

Location of installation software:

Code: Select all
/home/aoddy/Develops/WRF/WRF3
/home/aoddy/Develops/WRF/library

|--- mpich-3.1.2
|--- zlib-1.2.8
|--- hdf-1.8.13
|--- netcdf.4.3.2 **
|--- arwpost
|--- jasper-1.701.0
|--- libpng-1.6.12
|--- bufr


Libraly & Software require:

Code: Select all
    mpich-3.1.2.tar.gz
    zlib-1.2.8.tar.gz
    hdf5-1.8.13.tar.gz
    netcdf-4.3.2.tar.gz
    netcdf-fortran-4.4.0.tar.gz
    netcdf-cxx4-4.2.tar.gz
    ARWpost_V3.tar.gz
    jasper-1.701.0.tar.gz
    libpng-1.6.12.tar.gz
    bufr.tar.gz
    WRF 3.6.1


Step#1: We need to install gcc gcc-c++ gcc-gfortran first by

Code: Select all
$ sudo apt-get install gcc gcc-c++ gcc-gfortran


Step#2 : Install basic software for compiling software.
Code: Select all
$ sudo apt-get install build-essential


Step#3 : Install MPI

Code: Select all
$ ./configure --prefix=/home/wrfadmin/WRFV3/library/mpich-3.0.4/mpich-install
$ make
$ make install

Then add path of MPI into file ~/.basrc

Code: Select all
PATH=/home/wrfadmin/WRFV3/library/mpich-3.0.4/mpich-install/bin:$PATH;export PATH


Step#4 : Install zlib
Code: Select all
$ ./configure --prefix=/home/wrfadmin/WRFV3/library/zlib-1.2.8
$ make test
$ make install


Then add path of zlib into file ~/.basrc

Code: Select all
export zlib=/home/wrfadmin/WRFV3/library/zlib-1.2.8


Step#5 : Install HDF5
Code: Select all
$ ./configure --prefix=/home/aoddy/Develops/WRF/library/hdf5-1.8.13 --enable-fortran --enable-cxx --with-zlib=/home/aoddy/Develops/WRF/library/zlib-1.2.8
$ make
$ make test
$ make install
$ make check-install

Then add path of HDF5 into file ~/.basrc

Code: Select all
export HDF5=/home/wrfadmin/WRFV3/library/hdf5-1.8.12


Step#6 : Install NetCDF4.3.2

Before you start to compile&install you need to add a list of export variable below in ~/.bashrc

Code: Select all
export CPPFLAGS="-I/home/aoddy/Develops/WRF/library/hdf5-1.8.13/include -I/home/aoddy/Develops/WRF/library/zlib-1.2.8/include -I/home/aoddy/Develops/WRF/library/netcdf.4.3.2/include"
export LDFLAGS="-L/home/aoddy/Develops/WRF/library/hdf5-1.8.13/lib -L/home/aoddy/Develops/WRF/library/zlib-1.2.8/lib -L/home/aoddy/Develops/WRF/library/netcdf.4.3.2/lib"
export LD_LIBRARY_PATH="/home/aoddy/Develops/WRF/library/hdf5-1.8.13/lib /home/aoddy/Develops/WRF/library/zlib-1.2.8/lib /home/aoddy/Develops/WRF/library/netcdf.4.3.2/lib"


** Don't forget to update .bashrs by :
$ source ~/.bashrc

Create a directory for new netcdf. (It's not the same directory of netcdf software.)

$ mkdir netcdf.4.3.2
Go to the installation netcdf software (netcdf-4.3.2) and start to install :
** Directory of source code is netcdf-4.3.2 but the directory for installation is netcdf.4.3.2 **

Code: Select all
$ ./configure --prefix=/home/aoddy/Develops/WRF/library/netcdf.4.3.2 FC=gfortran F77=gfortran CC=gcc --enable-shared
$ make
$ make check
$ make install


You need to update ~/.bashrc file by adding :

Code: Select all
export NetCDF=/home/aoddy/Develops/WRF/library/netcdf.4.3.2
export NETCDF_LIB=/home/aoddy/Develops/WRF/library/netcdf.4.3.2/lib
export NETCDF_INC=/home/aoddy/Develops/WRF/library/netcdf.4.3.2/include

Step#7 : Install netcdf-fortran-4.4.0
The installation of netcdf-fortran should install in the same of netcdf directory.
Code: Select all
./configure --prefix=/home/aoddy/Develops/WRF/library/netcdf.4.3.2 FC=gfortran F77=gfortran CC=gcc --enable-shared 2>&1 | tee configure.log
$ make
$ make check
$ make install


Step#8 : Install netcdf-cxx4-4.2
The installation of netcdf-cxx should install in the same of netcdf directory.
Code: Select all
./configure --prefix=/home/aoddy/Develops/WRF/library/netcdf.4.3.2 FC=gfortran F77=gfortran CC=gcc --enable-shared 2>&1 | tee configure.log
$ make
$ make check
$ make install


Step#9 : Install Install Jasper

Code: Select all
./configure --prefix=/home/aoddy/Develops/WRF/library/jasper-1.900.1
make
make check
make install


You need to update ~/.bashrc file by adding :

Code: Select all
export jasper=/home/aoddy/Develops/WRF/library/jasper-1.900.1
export JASPERLIB=/home/aoddy/Develops/WRF/library/jasper-1.900.1/lib
export JASPERINC=/home/aoddy/Develops/WRF/library/jasper-1.900.1/include

Step#10 : Install lipng

Code: Select all
./configure --prefix=/home/aoddy/Develops/WRF/library/libpng-1.6.9
make
make check
make install


You need to update ~/.bashrc file by adding :
Code: Select all
export libpng=/home/aoddy/Develops/WRF/library/libpng-1.6.9


Step#11 : Install burf
Code: Select all
tar xvfz bufr.tar.gz
cd bufr
gcc -c *.c
gfortran -c -DUNDERSCORE *.f
ar -ru libbufr.a *.o


You need to update ~/.bashrc file by adding :
Code: Select all
export BUFR=/home/aoddy/Develops/WRF/library/bufr


Step#12 : Verified .bashrc file
Code: Select all
PATH=/home/aoddy/Develops/WRF/library/mpich-3.1.2/mpich-install/bin:$PATH;export PATH
export HDF5=/home/aoddy/Develops/WRF/library/hdf5-1.8.13
export BUFR=/home/aoddy/Develops/WRF/library/bufr
export NetCDF=/home/aoddy/Develops/WRF/library/netcdf.4.3.2
export NETCDF=/home/aoddy/Develops/WRF/library/netcdf.4.3.2
export NETCDF_LIB=/home/aoddy/Develops/WRF/library/netcdf.4.3.2/lib
export NETCDF_INC=/home/aoddy/Develops/WRF/library/netcdf.4.3.2/include
export jasper=/home/aoddy/Develops/WRF/library/jasper-1.701.0
export JASPERLIB=/home/aoddy/Develops/WRF/library/jasper-1.701.0/lib
export JASPERINC=/home/aoddy/Develops/WRF/library/jasper-1.701.0/include
export libpng=/home/aoddy/Develops/WRF/library/libpng-1.6.12
export zlib=/home/aoddy/Develops/WRF/library/zlib-1.2.8

export CPPFLAGS="-I/home/aoddy/Develops/WRF/library/hdf5-1.8.13/include -I/home/aoddy/Develops/WRF/library/zlib-1.2.8/include -I/home/aoddy/Develops/WRF/library/netcdf.4.3.2/include"
export LDFLAGS="-L/home/aoddy/Develops/WRF/library/hdf5-1.8.13/lib -L/home/aoddy/Develops/WRF/library/zlib-1.2.8/lib -L/home/aoddy/Develops/WRF/library/netcdf.4.3.2/lib"
export LD_LIBRARY_PATH="/home/aoddy/Develops/WRF/library/hdf5-1.8.13/lib /home/aoddy/Develops/WRF/library/zlib-1.2.8/lib /home/aoddy/Develops/WRF/library/netcdf.4.3.2/lib"
export WRFIO_NCD_LARGE_FILE_SUPPORT=1


Step#13 : WRFV3.6.1
Code: Select all
./configure
./compile em_real 2>&1 | tee compile.log


Finish!!!
Original link : www.Aoddy.com
aoddy
 
Posts: 2
Joined: Tue Sep 09, 2014 10:41 pm

Re: How to install WRF 3.6.1 on Ubuntu 14.10 server.

Postby HugoMichel » Mon Aug 31, 2015 2:09 pm

is necessary install bfr and arwpost to run de model

because i compile the model teste case satisfactorily but when in i try to do:

[root@localhost em_tropical_cyclone]# ./ideal.exe
starting wrf task 0 of 1

and nothing happens
HugoMichel
 
Posts: 3
Joined: Mon Aug 31, 2015 1:50 pm

Re: How to install WRF 3.6.1 on Ubuntu 14.10 server.

Postby kwthomas » Mon Aug 31, 2015 2:50 pm

Change "debug_level" in "namelist.input" from 0 to 9999. This will cause "ideal.exe" to be
verbose in what it is doing. Output messages will be in rsl.out.0000/rsl.error.0000. Wrf.exe will do the same.

My best guess is that you are using more memory than you computer can supply. It may be doing massivers amounts of "swapping", which puts performance down to nearly nothing.
Try typing "dmesg" after running (assuming UNIX/Linux system) to see if there are any system complaints. You can also try running "top", if on you system, while running to see what kind of memory is being used.
Kevin W. Thomas
Center for Analysis and Prediction of Storms
University of Oklahoma
kwthomas
 
Posts: 279
Joined: Thu Aug 07, 2008 6:53 pm

Re: How to install WRF 3.6.1 on Ubuntu 14.10 server.

Postby manojzpagare » Tue Feb 16, 2016 5:33 am

I have gone through each and every steps but it showing something missing.
please help me in sorting out
manojzpagare
 
Posts: 8
Joined: Tue Feb 16, 2016 2:04 am

Re: How to install WRF 3.6.1 on Ubuntu 14.10 server.

Postby manojzpagare » Tue Apr 26, 2016 2:56 am

Thank you
can u suggest the steps for the WRF V3 Chem-3.7.1 on Ubuntu 32 bit -12.04 LTS
We have following version of the system
G Fortran-4.6.3
C++ -4.6.3
NetCDF-4.3.2
MPICH-3.1.2
zlib-1.2.8
Jasper -1.701.0
libpng-1.6.12

Please suggest suitable stps for installation.
manojzpagare
 
Posts: 8
Joined: Tue Feb 16, 2016 2:04 am

Re: How to install WRF 3.6.1 on Ubuntu 14.10 server.

Postby manojzpagare » Thu May 19, 2016 5:57 am

please suggests the required steps for untar the file
NetCDF-4.3.2
MPICH-3.1.2
zlib-1.2.8
Jasper -1.701.0
libpng-1.6.12


Thanks
manojzpagare
 
Posts: 8
Joined: Tue Feb 16, 2016 2:04 am

Re: How to install WRF 3.6.1 on Ubuntu 14.10 server.

Postby jcanellas » Mon Jul 15, 2019 9:59 am

Thanks Aoddy this is really helpful.
jcanellas
 
Posts: 9
Joined: Tue Jun 18, 2019 9:21 am
Location: Buenos Aires, Argentina

Re: How to install WRF 3.6.1 on Ubuntu 14.10 server.

Postby anarafaelamiranda » Wed Nov 13, 2019 3:30 pm

Hello, how to install WRF on Ubuntu 18.04.3 LTS?
anarafaelamiranda
 
Posts: 2
Joined: Wed Nov 13, 2019 3:25 pm


Return to Installation

Who is online

Users browsing this forum: No registered users and 7 guests