I need to compile a model (CMS) on Ubuntu 25.10 (running in VirtualBox on macOS), but CMS requires these exact versions:
NetCDF-C 4.6.1
NetCDF-Fortran 4.4.5
HDF5 1.10.5
All newer versions lead to incompatibilities with CMS, so I must build exactly these releases from source.
I’m completely new to Ubuntu (today is my first day), so I’m not sure how to get packages from older releases and I did not find how to do it on here.
Here’s what I’ve tried so far:
- System packages
sudo apt updatesudo apt install -y build-essential gfortran gcc make pkg-configlibtool autoconf automake m4 libcurl4-openssl-dev openmpi-bin libopenmpi-dev libnetcdf-dev libnetcdff-dev libhdf5-devBut libnetcdff-dev and libhdf5-dev in Ubuntu are too new (NetCDF-C 4.7+, Fortran 4.5+, HDF5 1.12+).
- Manual build but only of HDF5 1.10.5
I used code that I found online to install previous releases of packages from local files.
cd /tmpwget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.5/src/hdf5-1.10.5.tar.gztar zxvf hdf5-1.10.5.tar.gzcd hdf5-1.10.5./configure \makeconfigure seems to work fine (no error) but the make command fails.error message from make
- From apt-get
I also tried, following online tutorial too :
sudo apt-get install hdf5=1.10.5I had no hopes for that one and I indeed had this error : "E: Unable to locate package hdf5".
I know there probably is a very simple solution to install these 3 packages in the right version but I am not sure how to look properly for answers. I’m also a little bit worried about using sudo incorrectly, so any guidance on best practices would be greatly appreciated. Thanks in advance!