I want to run a program which requires HDF5 1.8.21 (old ver). Now, I downloaded and compiled HDF5 1.8.21 in a separate folder (/opt/hdf5/hdf5-1.8.21/hdf5/bin). But because my desktop already has HDF5 Version 1.10.1 (new ver), which I can not remove, as it will break some other packages. What is the best way to overcome this problem? Is there a way by which I can safely set a path or environment such that while the above mentioned program is running, older version of HDF is used? Thanks.
Output for 'echo $PATH': /home/aman/anaconda2/bin:/home/aman/anaconda2/condabin:/opt/alps/bin:/home/aman/bin:/home/aman/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/hdf5/latest/bin
Output for 'h5cc -showconfig'
SUMMARY OF THE HDF5 CONFIGURATION =================================
HDF5 Version: 1.10.1 Configured on: Thu Feb 22 01:57:34 UTC 2018 Configured by: conda@33e6404d1326 Host system: x86_64-unknown-linux-gnu Uname information: Linux 33e6404d1326 4.4.0-96-generic #119~14.04.1-Ubuntu SMP Wed Sep 13 08:40:48 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux Byte sex: little-endian Installation point: /home/aman/anaconda2
---- truncated ----