snale-net / pagure

Librairies and models installation
5 stars 0 forks source link

Problem with compilation of DELFT3D : installation netcdf 4.8.0 #27

Open MathieuSlrLUO opened 1 year ago

MathieuSlrLUO commented 1 year ago

This error appears :

[ INFO ] Install netcdf 4.8.0 (version C - need HDF 1.10.5 and Parallel-Netcdf 1.12.1) --2023-07-31 11:23:27-- ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-c-4.8.0.tar.gz => 'netcdf-c-4.8.0.tar.gz' Resolving ftp.unidata.ucar.edu (ftp.unidata.ucar.edu)... 128.117.149.10 Connecting to ftp.unidata.ucar.edu (ftp.unidata.ucar.edu)|128.117.149.10|:21... connected. Logging in as anonymous ... Logged in! ==> SYST ... done. ==> PWD ... done. ==> TYPE I ... done. ==> CWD (1) /pub/netcdf ... done. ==> SIZE netcdf-c-4.8.0.tar.gz ... done. ==> PASV ... done. ==> RETR netcdf-c-4.8.0.tar.gz ... No such file 'netcdf-c-4.8.0.tar.gz'.

I think it's due to the fact that unidata has removed version 4.8.0 from their servers, so it's not available on unidata but it can be downloaded via the link Github unidata integrated into pagure/include/group/6-io.sh. I've tried to modify the url without success. Can you help me?

MathieuSlrLUO commented 1 year ago

This is working with : (line 154 of 6-io.sh) # compiled with HDF 1.10.5 index=4 name["$group-$index"]=netcdf version["$group-$index"]=4.9.2 if [ "$mpilib" == "none" ]; then details["$group-$index"]="(version C - need HDF 1.10.5)" else details["$group-$index"]="(version C - need HDF 1.10.5 and Parallel-Netcdf 1.12.1)" fi url["$group-$index"]=https://downloads.unidata.ucar.edu/netcdf-c/4.9.2/netcdf-c-4.9.2.tar.gz filename["$group-$index"]=netcdf-c-4.9.2.tar.gz dirname["$group-$index"]=netcdf-c-4.9.2 builder["$group-$index"]="configure"

But I have the impression that the change of version leads to code incompatibility.

[ INFO ] Removing archive file and source files [ OK ] Install netcdf 4.9.2 (version C - need HDF 1.10.5 and Parallel-Netcdf 1.12.1) ...................... [ FAIL ] Missing required dependency : ModuleCmd_Load.c(213):ERROR:105: Unable to locate a modulefile for 'netcdf-c/hdf5.110/mpich321/icc17/4.8.0'. Please install it before [ ABORT ] PAGURE aborted with status error 100

fretif commented 1 year ago

Hi Mathieu, In my commit on 11 July, I changed the link for NetCDF. Can you retry with the lastest version of the master branch ? If you changed the version of NetCDF, you also have to change the version in all dependencies that use NetCDF. In you example, you installed Netcdf 4.9.2 and the following package need Netcdf 4.8.0