학부 강의 노트/KAIST부설 한과영

OpenSuse :: packages for vprm

airmaster 2023. 1. 12. 18:02
728x90

https://forums.opensuse.org/t/installing-gcc-compiler/17982

Computer (menu) > Install software > Search for “gcc” > click on the “GCC” > click on “Install”

 

GCC

When you click gcc, it will install other dependency packages automatically.

 

JPEG

install by clicking various packages of libjpeg, .. and etc via YaST2

 

zlib

install various zlib packages via YaST2

 

 

Checkout this site for WRF isntallation

 
## Downloading Libraries
cd Downloads
wget -c https://www.zlib.net/zlib-1.2.13.tar.gz
wget -c https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.5/src/hdf5-1.10.5.tar.gz
wget -c https://downloads.unidata.ucar.edu/netcdf-c/4.9.0/netcdf-c-4.9.0.tar.gz
wget -c https://downloads.unidata.ucar.edu/netcdf-fortran/4.6.0/netcdf-fortran-4.6.0.tar.gz
wget -c http://www.mpich.org/static/downloads/3.3.1/mpich-3.3.1.tar.gz
wget -c https://download.sourceforge.net/libpng/libpng-1.6.37.tar.gz
wget -c https://www.ece.uvic.ca/~frodo/jasper/software/jasper-1.900.1.zip
 
# Compilers
export DIR=$HOME/WRF/Library
export CC=gcc
export CXX=g++
export FC=gfortran
export F77=gfortran
 
# zlib
cd $HOME/WRF/Downloads
tar -xvzf zlib-1.2.13.tar.gz
cd zlib-1.2.13/
./configure --prefix=$DIR
make
make install
 
# hdf5 library for netcdf4 functionality
cd $HOME/WRF/Downloads
tar -xvzf hdf5-1.10.5.tar.gz
cd hdf5-1.10.5
./configure --prefix=$DIR --with-zlib=$DIR --enable-hl --enable-fortran
make check
make install
 
export HDF5=$DIR
export LD_LIBRARY_PATH=$DIR/lib:$LD_LIBRARY_PATH
 
## Install NETCDF C Library
cd $HOME/WRF/Downloads
tar -xvzf netcdf-c-4.9.0.tar.gz
cd netcdf-c-4.9.0/
export CPPFLAGS=-I$DIR/include
export LDFLAGS=-L$DIR/lib
./configure --prefix=$DIR --disable-dap
make check
make install
 
export PATH=$DIR/bin:$PATH
export NETCDF=$DIR
 
## NetCDF fortran library
cd $HOME/WRF/Downloads
tar -xvzf netcdf-fortran-4.6.0.tar.gz
cd netcdf-fortran-4.6.0/
export LD_LIBRARY_PATH=$DIR/lib:$LD_LIBRARY_PATH
export CPPFLAGS=-I$DIR/include
export LDFLAGS=-L$DIR/lib
export LIBS="-lnetcdf -lhdf5_hl -lhdf5 -lz"
./configure --prefix=$DIR --disable-shared
make check
make install

https://gist.github.com/jamal919/5498b868d34d5ec3920f306aaae7460a

 

WRF 4.1.2 installation with netCDF4, HDF5 in ubuntu 18.04 LTS

WRF 4.1.2 installation with netCDF4, HDF5 in ubuntu 18.04 LTS - install_wrf41.sh

gist.github.com

 

 

 

 

 

728x90