Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

Compiling WRF

fotieno

New member
Is there anyone who has compiled WRF in Ubuntu 24.04. I am having trouble with netcdf-Fortran. I get an error using the library in the compilation page but not when I download netcdf-Fortran from unidata. WRF will not compile complaint that one of the compilation tests fails . Any help
 
Is there anyone who has compiled WRF in Ubuntu 24.04. I am having trouble with netcdf-Fortran. I get an error using the library in the compilation page but not when I download netcdf-Fortran from unidata. WRF will not compile complaint that one of the compilation tests fails . Any help
I have gotten it to work, what versions of all the libraries are you using?
 
I tried these libraries as suggested on the WRF users page on compiling WRF.
mpich-3.0.4
netcdf-c-4.7.2
netcdf-fortran-4.5.2
Jasper-1.900.1
libpng-1.2.50
zlib-1.2.11
When these did not work I went to the unidatta website and download and got

netcdf-c-4.9.2.zip
netcdf-fortran-4.6.1.zip

I can install the netcdf-c** but not netcdf-fortran-*

HERE are my system specs:
# System Details Report
---

## Report details
- **Date generated:** 2024-07-28 13:53:10

## Hardware Information:
- **Hardware Model:** ASUSTeK COMPUTER INC. ROG STRIX B450-F GAMING
- **Memory:** 16.0 GiB
- **Processor:** AMD Ryzen™ 5 3600 × 12
- **Graphics:** OLAND
- **Disk Capacity:** 2.0 TB

## Software Information:
- **Firmware Version:** 3003
- **OS Name:** Ubuntu 24.04 LTS
- **OS Build:** (null)
- **OS Type:** 64-bit
- **GNOME Version:** 46
- **Windowing System:** Wayland
- **Kernel Version:** Linux 6.8.0-39-generic

gcc (Ubuntu 13.2.0-23ubuntu4) 13.2.0
 
I tried these libraries as suggested on the WRF users page on compiling WRF.
mpich-3.0.4
netcdf-c-4.7.2
netcdf-fortran-4.5.2
Jasper-1.900.1
libpng-1.2.50
zlib-1.2.11
When these did not work I went to the unidatta website and download and got

netcdf-c-4.9.2.zip
netcdf-fortran-4.6.1.zip

I can install the netcdf-c** but not netcdf-fortran-*

HERE are my system specs:
# System Details Report
---

## Report details
- **Date generated:** 2024-07-28 13:53:10

## Hardware Information:
- **Hardware Model:** ASUSTeK COMPUTER INC. ROG STRIX B450-F GAMING
- **Memory:** 16.0 GiB
- **Processor:** AMD Ryzen™ 5 3600 × 12
- **Graphics:** OLAND
- **Disk Capacity:** 2.0 TB

## Software Information:
- **Firmware Version:** 3003
- **OS Name:** Ubuntu 24.04 LTS
- **OS Build:** (null)
- **OS Type:** 64-bit
- **GNOME Version:** 46
- **Windowing System:** Wayland
- **Kernel Version:** Linux 6.8.0-39-generic

gcc (Ubuntu 13.2.0-23ubuntu4) 13.2.0
do you have any error logs?
 
hey fotieno, I recently installed it in ubuntu 22.04, the problem is with the compiler gcc13.2.0. I used gcc 9.5.0 and it worked, you need to configure everything again after changing your version.

i used netcdf-fortran 4.5.2
wget https://github.com/Unidata/netcdf-fortran/archive/v4.5.2.tar.gz

Also make sure your environment is set correctly, I refered to this article and it helped me alot.
Make sure the environment looks similar.
 
Top