Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 7072

How can I install NetCDF-C 4.6.1, NetCDF-Fortran 4.4.5 and HDF5 1.10.5 on Ubuntu 25.10?

$
0
0

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-dev

But 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 \make

configure 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.5

I 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!


Viewing all articles
Browse latest Browse all 7072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>