如何在Ubuntu上安装netcdf-fortran

问题描述 投票:0回答:1

我使用的是Fortran软件,需要编译

gfortran
netcdf-fortran.

作为工作环境,我在 Windows 10 上有

WSL
Ubuntu 20.04.4
gfortran 9.4.0

经过一番搜索,我找到了如何构建 netcdf Fortran 库的描述:

https://docs.unidata.ucar.edu/netcdf-c/current/building_netcdf_fortran.html

我在以下位置下载了最新的 netcdf c 版本:

git clone http://github.com/Unidata/netcdf-c netcdf-c

然后我下载了最新的betcdf-fortran版本:

git clone https://github.com/Unidata/netcdf-fortran.git netcdf-fortran

下载 netcdf-c 和 netcdf-fortran 项目后,如何编译/构建最新的 netcdf-Fortran 库?

gfortran netcdf
1个回答
0
投票

您可以尝试使用这个https://github.com/Michele231/netCDF_auto_install。 我没有在 WSL 上测试它,但在 ubuntu 20.04 和 22.04 上它可以工作。

© www.soinside.com 2019 - 2024. All rights reserved.